httpc: Add EINPROGRESS workaround for OSX