Add atomic fetch-and-set and fetch-and-add ops.