Add option to limit the maximal number of parallel threads.
Differential Revision: http://reviews.llvm.org/D5581