gallium/util: replace pipe_thread with thrd_t