[libc] add more APIs of cmgxchg variants (#91208)

Such APIs are useful in lock implementations

GitOrigin-RevId: 096f85e827b6fdf52ff1f8d99aa8335a885b46a1
1 file changed