locks cleanup