[PATCH v3 2/2] msvcrt: Fix freopen() on FILE with invalid underlying fd.