lib: use stronger memory ordering in atomic decrement
maybe rename to lib_refPut, lib_refGet?
#define lib_atomicIncrement(ptr) __atomic_add_fetch(ptr, 1, __ATOMIC_RELAXED)
-#define lib_atomicDecrement(ptr) __atomic_add_fetch(ptr, -1, __ATOMIC_RELAXED)
+#define lib_atomicDecrement(ptr) __atomic_add_fetch(ptr, -1, __ATOMIC_ACQ_REL)
#define max(a, b) ({ \
