Windows: Wait for all worker threads to exit