Fixed locking on purging profiles for terminated dialogs - in strange cases of concurancy between provisional and final replies, the profile ops for provisional reply may end up iterating on a deleted list.
Reported by Trevor Francis (46labs)
Closes issue #102