Reverts wiredtiger/wiredtigerWT-1870
WT-1870 Flush files from the cache before closing as part of sweep.