Add barriers for ARM architecture