Add new statistics_log=(on_close=bool) option.

That logs a set of statistics on WT_CONNECTION::close.