Just for info so as people aren't mislead... If you are locked out then flashing WILL help as it lets you use your phone again, and then go through the steps on 'Talk' to recover the code. I know this because exactly the same thing happened to me. When you flash though, all your personal details (coversations, address book etc will still be there)