misc/ring: Use the acquire/release memory model for atomics

Also removes redundant barriers.