[Fixes #81865942] Refactored the task-based initialization code to use fewer tasks. This works on a scheduler with only one core.