Prefer __sync_bool_compare_and_swap() to PPC inline asm.

Debian PPC GCC 4.4 in particular does not compile the assembly.
Fix PPC link error on mono/mini due to missing symbol.