change StaticMutex to StaticNativeMutex