fix lock cleanup [ci skip]