gio/gsocket.c: Fix error code checks when SOCK_CLOEXEC is defined but