Made lockScreen re-try with a timeout