gio/gtestdbus.c: Fix write_config_file() for Windows
gio/gtestdbus.c: Fix write_config_file() for Windows

Windows does not like g_unlink() to be called on files whose file
descriptor is still open, so doing that would cause a permission
denied error.  Since the fd is not used in that function after
acquiring the temp file, close it earlier before
g_file_set_contents(), so that it can complete successfully.

This fixes a number of GTK+ tests on Windows.

https://bugzilla.gnome.org/show_bug.cgi?id=719344

mzabaluev/glib,cention-sany/glib,cention-sany/glib,tamaskenez/glib,cention-sany/glib,gale320/glib,johne53/MB3Glib,tchakabam/glib,johne53/MB3Glib,gale320/glib,tchakabam/glib,Distrotech/glib,johne53/MB3Glib,tamaskenez/glib,Distrotech/glib,tamaskenez/glib,Distrotech/glib,MathieuDuponchelle/glib,lukasz-skalski/glib,mzabaluev/glib,MathieuDuponchelle/glib,ieei/glib,endlessm/glib,mzabaluev/glib,mzabaluev/glib,endlessm/glib,lukasz-skalski/glib,lukasz-skalski/glib,mzabaluev/glib,Distrotech/glib,cention-sany/glib,ieei/glib,johne53/MB3Glib,tchakabam/glib,gale320/glib,gale320/glib,krichter722/glib,ieei/glib,Distrotech/glib,krichter722/glib,ieei/glib,cention-sany/glib,lukasz-skalski/glib,krichter722/glib,MathieuDuponchelle/glib,krichter722/glib,krichter722/glib,MathieuDuponchelle/glib,johne53/MB3Glib,tamaskenez/glib,gale320/glib,endlessm/glib,tchakabam/glib,endlessm/glib,johne53/MB3Glib,lukasz-skalski/glib,ieei/glib,endlessm/glib,tamaskenez/glib,MathieuDuponchelle/glib,tchakabam/glib