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