CHEF-4850 Close file in Chef::File::Edit after reading contents

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