With the new runtime in place and the ability to stat paths, this function should probably delegate to `rt::io::file` instead of using the blocking implementation of `libc::stat`