added barrier at the beginning to fix a race between initialization and update from other node
added barrier at the beginning to fix a race between initialization and update from other node

michalszynkiewicz/PCJ,michalszynkiewicz/PCJ