Fixed GMutex init. Fixes #41
Fixed broken test_pack