a32300a changed it to create a ThreadPool eagerly so that it gets reused
across buffers, however it also made it so that we create a ThreadPool
early even if we're not gonna use it later because of the command line
option --mlir-disable-threading is provided.
Fix #53056
This feels not ideal, is there a way to check statically that threading is enabled? I thought we had something on MLIRContext for that. If not, could we add it?