Fix issue with dispatch thread soft limit to avoid potential deadlock.
Fix issue with dispatch thread soft limit to avoid potential deadlock.

Though it is not documented but apparently there is dispatch thread soft limit on OS X (and iOS) which is equal to 64. Generation of more then 64 threads could lead to error like this: `Dispatch Thread Soft Limit: 64 reached in 2244 of 2244 samples -- too many dispatch threads blocked in synchronous operations`.

In xctool it is a semaphore which limits number of currently running threads (`jobLimiter`) which value is equal to `[[NSProcessInfo processInfo] processorCount]`. But the problem is that it doesn't limit number of created threads which could easily be more then 64. Everything would be fine if generated threads don't create other threads but it could easily happen when interaction with CoreSimulator framework happens.

So there could be a situation when there is 64 threads created to run logic tests, and every thread wants to access something in CoreSimulator frameworks which tries to dispatch another thread to guard access to shared resources but fails (locks) because there is a 64 dispatch thread soft limit. At that point all threads will be deadlocked.

SuPair/xctool,LegNeato/xctool,adamjernst/xctool,modulexcite/xctool,lpios/xctool,bgertzfield/xctool,SuPair/xctool,githubdelegate/xctool,modulexcite/xctool,AutoScout24/xctool,yaoxiaoyong/xctool,AutoScout24/xctool,Monits/xctool,Monits/xctool,soundcloud/xctool,trello/xctool,SuPair/xctool,trello/xctool,jspahrsummers/xctool,facebook/xctool,githubdelegate/xctool,blighli/xctool,blighli/xctool,Richardlihui/xctool,agreco/xctool,1yvT0s/xctool,yaoxiaoyong/xctool,jspahrsummers/xctool,dvor/xctool,1yvT0s/xctool,ekingo/xctool,PSPDFKit-labs/xctool,theiren46/xctool,lpios/xctool,bgertzfield/xctool,soundcloud/xctool,githubdelegate/xctool,blighli/xctool,ekingo/xctool,kamoljan/xctool,n054/xctool,trello/xctool,Monits/xctool,duk42111/xctool,FiftyThree/xctool,kamoljan/xctool,dvor/xctool,agreco/xctool,adamjernst/xctool,bhamiltoncx/xctool,leopardpan/xctool,kernandreas/xctool,Richardlihui/xctool,bhamiltoncx/xctool,n054/xctool,bhamiltoncx/xctool,theiren46/xctool,bgertzfield/xctool,dvor/xctool,theiren46/xctool,lpios/xctool,jspahrsummers/xctool,Richardlihui/xctool,1yvT0s/xctool,AutoScout24/xctool,agreco/xctool,FiftyThree/xctool,dvor/xctool,kernandreas/xctool,ekingo/xctool,yaoxiaoyong/xctool,PSPDFKit-labs/xctool,n054/xctool,n054/xctool,kamoljan/xctool,jspahrsummers/xctool,SuPair/xctool,duk42111/xctool,duk42111/xctool,bhamiltoncx/xctool,bgertzfield/xctool,bhamiltoncx/xctool,bgertzfield/xctool,leopardpan/xctool,leopardpan/xctool,n054/xctool,PSPDFKit-labs/xctool,bgertzfield/xctool,PSPDFKit-labs/xctool,Richardlihui/xctool,facebook/xctool,lpios/xctool,FiftyThree/xctool,LegNeato/xctool,lpios/xctool,bhamiltoncx/xctool,facebook/xctool,duk42111/xctool,soundcloud/xctool,ekingo/xctool,soundcloud/xctool,AutoScout24/xctool,FiftyThree/xctool,lpios/xctool,kernandreas/xctool,githubdelegate/xctool,1yvT0s/xctool,kamoljan/xctool,modulexcite/xctool,blighli/xctool,modulexcite/xctool,soundcloud/xctool,agreco/xctool,leopardpan/xctool,facebook/xctool,facebook/xctool,theiren46/xctool,LegNeato/xctool,LegNeato/xctool,PSPDFKit-labs/xctool,facebook/xctool,kernandreas/xctool,Monits/xctool,adamjernst/xctool,yaoxiaoyong/xctool,adamjernst/xctool,trello/xctool,soundcloud/xctool,n054/xctool