Feelings of ownership also cause problems in software engineering, i.e. people being unwilling to make changes to their code that a reasonable person would see as improvements, just because implying that the existing code isn't perfect threatens their ego.
You said it yourself, the problem isn't code ownership, it's ego. Or do you think the ego goes away when there is AI to do the work?