ring: introduce C11 memory model barrier option