NCG: Use sync instead of msync for a memory barrier for powerpc