Put the mutex code back as it was originally. We can still use it when single threaded.