Fix trying to set watching in events on sockets too early
Fix trying to set watching in events on sockets too early

We would try to set watching of input events (`POLL_IN` for poll())
before we actually "wrote down" that we have gotten a socket.

This was not a "functional" bug, things worked, but, we would waste
CPU cycles, because `POLL_OUT` would have been set and it's "always
on".

pubnub/c-core,pubnub/c-core,pubnub/c-core,pubnub/c-core