Make checkpoint cache handles, not a list of URIs, when flushing leaf pages.

Original references is #1114 and #1136, current reference is #1142.
Did you think it would be better to walk files in reverse order?  My suspicion is that at least for LSM, walking more recent files last will be better...