MuonSegmentBuilding - Store the collections at the end of the loop
Hi,
this MR is a conceptual copy of !52675 (merged) where @ssnyder mentioned that an early container record could release the container for clients downstream. Also the NSW segment container is no longer written if not needed.