Properly handle case where default number of threads requested

If a user requests the default number of threads by specifying '0' as the threads number, be sure to propagate the actual number of threads chosen by TBB to the rest of the system.