base_c: removed warnings from atomic implementation when building with clang