Fix gmutex deprecations