Make atomics actually write to memory for compatibility with normal accesses