Add missing atomic operations which supports GCC atomic builtins

By this change, Groonga works on armhf platform now!

Note that it needs GCC 4.8 to build. GCC 4.6/4.7/4.9 may fails.