Unify Windows and Unix API for tor_read_all_handle() in util.c
While working on #21654 (moved) I noticed that we have some different code paths that depends upon whether we're running on Windows or not where it would be trivial to turn them into a single code path.
I do not have access to a Windows machine right now, so it would be useful if someone could help test the patch(es).