Temporarily limits OpenBLAS worker threads.
OpenBLAS builds that use pthreads warn, and can hang, if they are called from an active OpenMP parallel region:
OpenBLAS Warning : Detect OpenMP Loop and this application may hang.
Ginan keeps some high-level chunk loops parallel with OpenMP. For those loops we want each chunk's BLAS/LAPACK calls to run single-threaded instead of nesting another thread pool inside every OpenMP worker. This RAII guard sets OpenBLAS to the requested thread count for the current scope and restores the previous OpenBLAS setting when it leaves the scope.
Passing numThreads <= 0 disables the guard. If the target is linked against a non-OpenBLAS BLAS/LAPACK library, the guard is compiled as a no-op.