This is deprecated since version 2.32.
Use g_rec_mutex_lock()
Works like calling g_static_rec_mutex_lock() for @mutex @depth times.
number of times this mutex has to be unlocked to be completely unlocked.