Bug 618580 - Thread pool creation fails if number of CPUs is > GIMP_MAX_NUM_THREADS

Clamp the default value for the number of processors to use to the
maximum number of threads.

(cherry picked from commit 00f0350413355e108f288d492165683a1072b0b4)