stat: ifdef logic in atomic.h simplified