[TEST] Improve robustness of restoreIndexWithMissingShards test