Removed additional deprecated static mutex. Also added mutex
initialization due statically allocated mutex are not backward
compatible with older versions of glib.