gstdio: minor cleanups
Just some minor cleanups that were found/done while looking into #539.
I don't actually think the fopen flag reordering is necessary any more (seems to work fine without it for me), but I've left it, and made it a little less crap.