Fix CloseFile test on Mac.