I ran into this bug today, and have verified that it's not a GIO bug per se, but is a bug in the interaction between Emacs and glib, which causes Emacs to mess up glib. Patch attached.