Bug 1023199 - Improve wait in test_gallery_flick