Close stats

Add a new statistics_log=(on_close=bool) option to wiredtiger_open.

Reference #1085.