Correct use of ZMQ using poller and thread-safety