You need to not have a lock code set up, as non-Nokia kernels can't access the memory where the lock code is stored. Just remove your lockcode. (you could also disable the warning if you want before flashing kernel, there's a command I don't remember now)