Fix build for clang, remove unnecessary mutexes