Fix CHECK_CODE usage in atomics builtin detection