Use thread-safe @threads initialize in zmq server