[RDY] Replace `struct stat` with `FileInfo`

`mch_stat` is used very often in the codebase. I think it is the best to refactor all uses of `mch_stat` and `struct stat` into functions in `os/fs.c`. This pull request won't probably refactor every use of `mch_stat`, but it is a good start.