[2127] fixed deadlock in ElexisEventDispatcher