There are some useful tools which will do it for you.
Check out
1. WinPwn
http://www.iphonehacks.com/2008/08/winpwntool-2004.html2. QuickPwn
http://www.quickpwn.com/3. check this one out
http://www.youtube.com/watch?v=LdC2Jvc66YEBut again, as said earlier, its kinda a bit messy as of now. If you are really require to unlock, you can take a some calculated risk and follow the above methods.