Fixed some timer lock logic.