simplify lock