Changed the implementation of chpl_process_task_list() so that multiple tasks can be put into the task pool with just a single mutex lock/unlock pair.  Besides the obvious performance improvement from reducing the number of times the mutex is accessed, this change can in some cases significantly reduce the number of threads required in order to execute a program.
Changed the implementation of chpl_process_task_list()
so that multiple tasks can be put into the task pool with just a single mutex
lock/unlock pair.  Besides the obvious performance improvement from reducing
the number of times the mutex is accessed, this change can in some cases
significantly reduce the number of threads required in order to execute a
program.

Also moved the calls to initializeLockReportForThread() into chpl_thread_init(),
and reverted some changes to chpl_begin_helper() because this slightly
simplifies the code, and yet is equivalent.


git-svn-id: 88467cb1fb04b8a755be7e1ee1026be4190196ef@13944 3a8e244f-b0f2-452b-bcba-4c88e055c3ca

sungeunchoi/chapel,CoryMcCartan/chapel,hildeth/chapel,hildeth/chapel,sungeunchoi/chapel,CoryMcCartan/chapel,chizarlicious/chapel,sungeunchoi/chapel,CoryMcCartan/chapel,CoryMcCartan/chapel,CoryMcCartan/chapel,chizarlicious/chapel,sungeunchoi/chapel,hildeth/chapel,chizarlicious/chapel,CoryMcCartan/chapel,CoryMcCartan/chapel,chizarlicious/chapel,chizarlicious/chapel,sungeunchoi/chapel,sungeunchoi/chapel,chizarlicious/chapel,hildeth/chapel,sungeunchoi/chapel,hildeth/chapel,sungeunchoi/chapel,hildeth/chapel,chizarlicious/chapel,hildeth/chapel