Set maxthreads from config param if available.