metadata: use GMutex instead of GStaticMutex