KVRecordStore: persistent record store stats

Implements statistics by tracking them separately in a metadata dictionary.  Can use fast updates to
increment stats if the underlying engine supports such updates.