Helpers to limit the number of threads used in the common native libraries.

WWW: https://github.com/joblib/threadpoolctl
