fix the concurrent ObjectOutPutStream issue. Add a synchronized method
in WorkerNode