lib/ovs-atomic: Add atomic compare_exchange.