Revising ring_buffer to remove memory barriers in favor of gcc atomics