[libc] Add wchar support to File (#189504)
This PR adds support for wide character operations such as read, write,
and ungetwc to the File class. It also adds tests but does not yet add
entrypoints, that will be done in a followup.
Assisted by Gemini