base: fixed atomic implementation for arm