Fix potential eventual consistency issue in test_gzip