atomic: check for gcc 4.1 on x86 which has buggy 64 atomic add.

See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40693 for more information
on the bug.