A StaticRecMutex must be initialized with this function before it can be used.
Use RecMutex
Alternatively you can initialize it with g_static_rec_mutex_init.
a StaticRecMutex to be initialized.