Revert CosmicsMuonIdProducer back to Legacy

CosmicsMuonIdProducer was missed when we converted all modules using
MuonDetLayerGeometry back to legacy to avoid thread safety problems.