open_segment: capture containers by non-const reference