[sr-dev] git:master:02fa3bf1: dialog: avoid useless re-entrant locking when linking the new dialog