procedure WaitForAll;
Waits until all workitems have finished their work and then returns.
Jam.Threading.IWorkItemsHelper