[sr-dev] git:3.2: dialog(k): refactored dlg ref counting