Fix absolute/relative time mismatch in LOCK function.