Use a CRITICAL_SECTION instead of a mutex created with CreateMutex

CreateMutex creates heavy cross-process mutexes, which is not used
with OFMutex. CRITICAL_SECTIONs are much lighter and faster.