Expose file descriptor

For FFI needs, as started by #15643, this allow `File`, `PipeStream` and `UnixStream` to export their internal file descriptor with the `AsFileDesc` trait provided by #18557.