libc/stdio: only roll FILE state back on EINTR
PR: 266171
(cherry picked from commit 44cf1e5eb470380442fa8e240e213a71b8fe81d4)