PhysFS: avoid double close of file