Fix a reference count bug in libsync arc

This is a fix for #13210. fetch_sub returns the old value of the atomic variable, not the new one.