libatomic_ops: 7.2d - portable atomic operations

Add a new formula for libatomic_ops that provides portable atomic
operations on many platforms.

Closes #21757.

Signed-off-by: Xiyue Deng <manphiz@gmail.com>