modules_k/dialog: Enhance unref_dlg_from_cb() robustness.