Restart activity if keyguard is locked.