close file before delete

zfile_test() was failing under Windows.
Test file "bilbo" could not be deleted as it was still open.