Use poll(2) instead of select(2) in TryConnect

Use poll(2) instead of select(2) as select is limited by FD_SETSIZE, which is possible to exceed.

Found by one of our engineers.

Tested on Linux on x86-64. Network acceptance tests passed.

https://dev.cfengine.com/issues/6557