CHEF-4850 Close file in Chef::Util::FileEdit after reading contents

When using Chef::Util::FileEdit to modify a file, the open leaks a file handle
This is probably only noticeable on Windows clients as the open file becomes locked