What is your operator on what phone is locked?
Sim unlock codes are usualy around 10$ or so, but since cappy is rly common phone probably there are sites with free calculator you time your imei and you got unlock code. you will get your imei with type *#06# on your dialer. . Google to try find free calculator or if there is not then you will have to pay but it's not much. I know for s2 i unlocked for free. there is even application on gplay for s2 unlock also i saw apk for s1 (big chance that cappy is included in this program) I suggest you to try this first, you cant lose anything cuz program will gief you right code if it avalible or it will not gief you anything so you can't type wrong code to many time and lock the phone totaly.
Also i think hard reset , reset trys. not 100% sure.