Set the `stat` property on a file object. Abstraction from vinyl-fs to support stream or non-stream usage.