Problem: does not work with zsock_t sockets

Solution added support, keeping void * for socket arguments.
Also added selftest using zsock_t sockets to ensure it works.
Problem: wrongly calculating timeout in msec

server/timeout is meant to be seconds; was calculating as msec
leading to broken test results in zbroker.