workaround race condition in zmq