The idea that the "software owns its own code" would not hold up in any court that I can think of. Building a system that spans jurisdictions, making it difficult for a court to claim the ability to rule on it is beside that point.
If an entity on the internet can't directly be controlled by anyone (kind of like Bitcoin), who is liable for its actions?