Add fetch_and, fetch_or, fetch_nand, fetch_xor to AtomicInt, AtomicUint

Fixes #12949.