Ticket 48989 - Re-implement lock counter
Bug Description: ppc 32bit does not support gcc atomic_*_8 operations.
Fix Description: Move the hardware detection routines outside of the
platform checks. Make these check the libc exposed values for __atomic
and that is used to determine if we use locks or atomics.
https://pagure.io/389-ds-base/issue/48989
Author: wibrown
Review by: mreynolds
Signed-off-by: Mark Reynolds <mreynolds@redhat.com>