check: wait for progress bar output
check: wait for progress bar output

Further code will also output to the terminal and the bar's cursor
positioning causes its output to overlap with the remaining output in a
racy way.

Fixes: #3344

restic/restic,restic/restic