stream_file: cache remote files on Windows

Same as 6896469 but for Windows.