remove certain mutexes and locks