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

Fixes #9958
Merge branch 'master' of https://github.com/hatahet/rust

Conflicts:
	src/libstd/path/windows.rs