db: rename redeclaration of builtin function __atomic_compare_exchange.

This patch renames the function __atomic_compare_exchange to avoid
conflict with the builtin function of the same name. This is done
to allow db to be built using clang. db builds using gcc without this
patch because this code is enclosed in gcc-specific if-guards.