clean up locks