glib2: fix hang on gsocket
Merge pull request #403 from nacho/wip/gsockethang

glib2: fix hang on gsocket