Define memory barrier for arm core, and use it.