util: move pipe_thread_is_self from gallium to src/util