[sr-dev] git:tmp/dlgnewref: dialog(k): refactored dlg ref counting