Ticket 49305 - Need to wrap atomic calls
Bug Description: Some RHEL 7.5 platforms (ppc 32bit) still do not support
all the gcc built-in atomics. This breaks the downstream
builds.
Fix Description: Use wrapper functions for the atomic's using #define's
to detect if builtin atomics are supported, otherwise
use the generic nspr atomic functions.
https://pagure.io/389-ds-base/issue/49305
Reviewed by: tbordaz, lkrispen, and wibrown(Thanks!!!)
(cherry picked from commit 93a29584ddae52497b898b451c2c810244627acb)