Fix concurrency in CompoundEvent::update_vector()