add mutex for using zmq REQ-REP socket