When waiting on multiple handles, wait for them in batches.

Waiting for them individually will produce output incrementally
as things are computed, but makes the overall process of printing
e.g. all locals in a stack frame slower. Doing it this way should
make it much faster.