gio/tests/desktop-app-info: Wait until the callback is called
The test was flacky because we were only relying on the presence of a file, while the callback could have not been called yet, while ensure for both assumptions to be true before stop iterating the loop.