Fixed random crashes in filesystem_unified tests on Windows.
Fixed random crashes in filesystem_unified tests on Windows.

Fixed problem where leaked file-handles would randomly crash
filesystem_unified tests on Windows.  Specifically, certain tests would
open but not close files, and these opened files would prevent
FileUtils.rm_rf('tmp') by test teardown from succeeding. (Windows,
unlike Unix, will not allow a folder to be deleted if contained files
are opened.)  Later tests, expecting very specific sets of files in
'tmp', would then fail upon finding detritus from earlier tests. Crashes
were essentially random due to the vagaries of garbage collection which
would not always clean up the leaked file-handles in time for
FileUtils.rm_rf('tmp').

--HG--
branch : 3.1.x

gjtorikian/nanoc,legallybrown/nanoc,RubenVerborgh/nanoc,hilohiro/nanoc,nanoc/nanoc,barraq/nanoc,remko/nanoc