Fix occasional build failures such as this one: https://gitlab.gnome.org/GNOME/tracker/-/jobs/2101449