don't leak the mutex if it was created when going to threadsafe mode