Getting locked out of your iPhone is frustrating. But it’s possible to solve the problem of a forgotten passcode without hiring a hypnotist.