pthreads: move `NativePthreadBarrier` to `pthreads::extra`