PauseAndLock is only called with do_lock=true, so remove the parameter and modify PauseAndLock accordingly.
final
overide