Adjust chpl_task_maxPar() to take maxThreads into account.

For fifo and massivethreads tasking, the chpl_task_getMaxPar() function
wasn't taking into account any limitation on the number of threads.  Now
it does.