util/u_thread: Fix build under Haiku

38 jobs for !3324 with haiku-build-fixups in 15 minutes and 27 seconds (queued for 7 seconds)
latest merge request