[BUG #8772] guard against the listener storage being manipulated while we iterate over it