Fix replication of dialog delete events

- instead of sending "deleted" packets based on hash delete operations,
they are now sent when a dialog changes state to "DLG_STATE_DELETED"
- this prevents the receiving instance from replicating the event again
(cherry picked from commit 5a63dcdf87c8d69c3dc9e5d6330f3d58953c28b5)