A StaticRWLock must be initialized with this function before it can be used.
Use RWLock instead
Alternatively you can initialize it with g_static_rw_lock_init.
a StaticRWLock to be initialized.