Add support for atomic operations with capability pointer arguments on CHERI.

Fixes #47