Just in case the real FILE and the one from fmemopen weren't exactly the same. (cherry picked from commit 2c9de139)