Use GRecMutex instead of deprecated GStaticRecMutex

Avoids ugly compilation warning.  But we still leave the old codepath
for compiling against ancient glib.