[TEST] wait for ongoing recoveries to finish. Flush fails on shards otherwise.