ac: add ac_atomic_inc_wrap / ac_atomic_dec_wrap support