Added synchronization to DataServer to prevent ZeroMQ connection error