No? Than it doesn't matter. The whole idea that because something is written into a contract that that automatically means that that his how things will be in the indefinite future is an illusion, and I've seen plenty of people burned that way. A contract only matters if (1) you are prepared to sue over it and (2) you will know what kind of remedy you want if you win the suit.
In this case the state of (1) is 'no' and the state of (2) doesn't matter because of (1).
A contract needs to be legal, and legal means what the law allows in the context. Does the law allow putting such provisions? I've been burnt by this in a rental agreement. Think about it this way: if we have a contract between both of us, where you agree that I'm going to kill you, I'm still going to jail. Having a contract doesn't make killing legal. This also applies to the rest of contracts. The provisions need to respect the law.
But the guy didn't have a contract, sold a patent-heavy company for $3bn (probably an army of lawyers involved) that netted him around $700mn. I'd just call this saving face.