Statistics checkpoint

Rework the statistics logging code to aggregate information from any open handles, so, for example, the statistics from open checkpoint handles will be logged.

Ref #709.