Fix /maincontext/timeout-once randomly fails

Merged Marc-André Lureau requested to merge malureau/glib:issue-2659 into main

Merge request reports