gio/tests/desktop-app-info: Wait until the callback is called

Merged Marco Trevisan requested to merge 3v1n0/glib:wait-for-async-uri-handler-called into main

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.

Merge request reports