acquireLithoSaveableStateRegistry

Transfers this tree's LithoSaveableStateRegistry to the caller so it can be supplied to a replacement tree with Builder.withLithoSaveableStateRegistry. The caller becomes responsible for closing the registry when the logical UI scope ends. Returns null when the tree has no saveable-state owner.