avutil/buffer: use the old atomics based code for the release branch