crypto: hisilicon/sec2 - Use atomics instead of __sync