src: make fs functions handle pre-epoch timestamps
A wrong type cast prevented timestamps before 1970-01-01 from working
with functions like fs.stat()
.
Fixes: #32369 (closed)
The first commit is https://github.com/libuv/libuv/pull/2747. This PR can't land (at least, not without the test failing) until libuv is upgraded.