Taking advantage of a new state law, Chicago’s lawsuit accuses Glock of manufacturing pistols with designs that allow modification and failing to make changes that would protect the public.