atomic: simplify by including pthread.h multiple time