[sr-dev] git:4.3:bf0efda9: dialog: avoid useless re-entrant locking when linking the new dialog