atomics: add some checks for solaris built in atomics support.