Add more atomic_swap_* functions.
Obtained from: ABT Systems Ltd Sponsored by: The FreeBSD Foundation