Question Pattern Lock Locks me out for 30 Seconds upon Reboot

Hi there, this is my first time posting. Recently, I met a problem with my HTC Legend. As the title says, my phone's pattern lock always locks me out for 30 seconds upon reboot and have to wait for a period of time before I can draw my pattern. What went wrong and how to solve it? Thank you!