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

Original references is #1114 and #1136, current reference is #1142.