cleanup locks