libmp: shared memory barrier implemented and noc barrier fixed.