Make the mutex protecting the dialogs invoked from separated threads be recursive
Fix conflicts