Thanks for the report. There was one particular bug fixed some time ago in the dialog module related to some concurrency issues for the dialog data structures. Could you please update to a supported version (e.g. one of the latest 5.7.x or 5.8.x) and see if the problem is fixed there?