ENH: speedup for docbuild using joblib

for issue #2604