Remove thread-blocking call to `libc::stat` in `Path::stat`

Fixes #9958
Merge remote-tracking branch 'upstream/master'
Made uv_stat_t.{st_dev, st_ino} public, #9958
auto merge of #10022 : hatahet/rust/master, r=alexcrichton

Fixes #9958