gio: move resolver utils from gresolver.c to gthreadedresolver.c