Close stats

Add a new statistics_log=(on_close=bool) option to wiredtiger_open.

Reference #1085.
With a minor change to the conditional, you can get rid of this second call to wt_cond_wait and just drop to the one at the bottom of the loop.