QPID-4782: use iterator.remove() to update the map and avoid the CME exposed in r1476219


git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1476583 13f79535-47bb-0310-9956-ffa450edef68