stream: file: Use O_TMPFILE when available

https://bugzilla.gnome.org/show_bug.cgi?id=704705
(cherry picked from commit c80fe16c3019eeb0686023b2968199e4d84a2676)