Bumbed glib version to >= 2.32.x so we have GRWLock support
Moved dupin locking to GRWLock. Forced glib >=2.32.x init and cleanup.