Rather than tracking them with a counter. This should close the race in
tracking the finalisation of the tasks by the task worker thread.
There’s no way to synchronise with that thread as it’s internal to
This should hopefully stop the
debugcontroller test being flaky.
Signed-off-by: Philip Withnall email@example.com