Setting up automatic re-lock wait time