You're quite right. A patent - particularly the kind of broad process patent common to software - is almost a canonical case of a positional good. Like all positional goods, the pursuit of software patents incentivizes a classic arms race in which no one wins. The solution to an arms race, as Hobbes taught us back in 1660, is a rule of law that guarantees mutual safety and hence eliminates the positional advantage.