Close stats

Add a new statistics_log=(on_close=bool) option to wiredtiger_open.

Not yet ready for review or merge.