Replace AO_xxx usage with pa_atomic_xxx and friends wherever it makes sense