This is required to correctly execute multiple, consecutive wait_for_all calls in one fork_join_sub_task.