I cannot say that there are no other deadlocks, but this case is not going to happen anymore when processing invite or other requests part of the dialog.
By trying to update the cseq in the locally generated DMQ request (which is for updating the dlg states to other peers), it was a spiral of accessing both dialogs and dmq-peers lists.