On single threaded systems, turn mutexes into nops

http://reviews.llvm.org/D3386