Fix win32 jmutex implementation and assert on initialization error