gsocketclient: Handle cancellation between CONNECTING and CONNECTED