llvmpipe: Do not use barriers if not using threads.