gallium: Move p_thread.h and p_atomic.h out of gallium interfaces.