Initial try to fixup the kernel.
remove membar
Define atomic_ OPs in an MI way.