Since commit d35d3c46 ('settings: rework tracking settings connections and settings plugins') must settings connections not be modified. They must be treated immutable and only updated by replacing them with a new variant. There is even an assertion for that.
Fix the code that attempts to modify an existing NMConnection.
Fixes: f2fe6c03 ('manager: don't treat the initramfs-configured DHCP connections as generated')