filesrc: Don't use fstat() on Windows but use specific Windows APIs
fstat() fails on Windows in various situations if the file metadata has
invalid values, and we only care about getting attributes and the file
size.
fstat() fails on Windows in various situations if the file metadata has
invalid values, and we only care about getting attributes and the file
size.