gio/tests/socket-client: fix a crash (and some indentation)