fix mutex lock issue with glib2-2.41.2