txn: add leaf_apply_commit/abort