Fastest way to wipe the device is to set up a password under Options > Security and enter it wrong until it wipes the phone. You'll be back to out of the box format.
You should be able to unlock it. Load the OS 4.5.0.81. It is still a very good phone. You will also get the new media player and larger capacity media card.