GSocket: add some more g_return_if_fail()s