If you are locked out of your device, do not resort to downloading risky software. Here are the legitimate, safer alternatives.