ring: use rte_atomic functions