Fix GNU atomic builtins

The ones that were being used returned the previous value rather than
the new value