dm btree: add ref counting ops for the leaves of top level btrees