That's the wrong metric to look at to asses the effectiveness of the patenting system. The justification for patents is that they facilitate innovation by granting a state-enforced monopoly for a limited window of time at the cost of publicly disclosing your innovation. Thereby creating incentive to pour R&D money into new ideas, and to share those ideas with the public. Under that mission, your example is proof of the effectiveness of patents, not the ineffectiveness. Innovation stagnating on steam engines, and then exploding after the patent expires is an example of this system working as intended.
I'm saying that justification needs strong evidence and it's not there.
Exploding after a patent expires is because the state has granted a monopoly to one person. The steam engine would have been invented without the patent protection.
Look at innovation in software - it's not because of patents. Patents hamper innovation.
I understand the point you are trying to make, I'm just pointing out that the example that you were using is actually one in favour of patents not against. I'm positive that the steam engine would have been invented with or without patents, but it's certainly possible that it's invention was accelerated by strong intellectual property protections. The vast majority of inventions are the product of profit-seeking endeavors, and patents help justify the immense capital required to invent. The idea of the lone inventor building something creating something purely for the joy of it is a romantic image, but not really how invention works (certainly not at scale).
Also, the technological explosion of the steam engine was partly due to public disclosure of the invention's function as required to obtain a patent. No patenting system, no disclosure. And maybe it takes society longer to figure out how the machine actually works, thus delaying innovation. If the patenting process did not exist, perhaps the inventors go to measures to secure their intellectual property themselves by intentionally making the product's inner workings obscured. A world with no intellectual property protection is a world where everyone attempts to hide and obfuscate their innovations from the rest of society. This is not an environment where innovation thrives either.
I'm certainly not trying to make the argument here that the patenting system is flawless or even good. Only that intellectual property protections of some kind or another are, and we shouldn't throw that baby out with the bathwater.
Part of them problem is patents are "one size fits all". the one size being 20 years.
In pharmaceuticals, where getting a drug to market takes a decade and hundreds of millions in investments, it seems to work well enough. The investments wouldn't be made if the investor couldn't get return because all their hard work could just be copied.
But fast moving areas where R&D can literally happen in a garage, take months rather than years, and each step builds upon the ideas in previous steps it's not all clear how patents help, and there pretty clear examples where patents slow things down. Sewing machines were bedevilled by patent thicket, as were aircraft where in World War I the Americans were force to use European designs. The latter was a bizarre outcome given heavier than air flight was invented in the US by the Wright brothers - but them heavily patented by them.
The sewing machine thicket was "solved" by the formation of a monopoly - Singer. The Aircraft thicket was solved by the US government demanding all aircraft patents be forfeited to them. In both cases as soon as the problem created by patents was solved, innovation resumed.
It's possibly true that shorter patents would prove to be a net benefit in fast moving industries, but IMHO the evidence seems pretty clear when your innovation is likely to be superseded by something better in 5 years in a free flowing environment, being able to stall all R&D by 20 years is not at all helpful.
Steam engines are only an example of patents working as intended if there was any value in publishing the ideas - that is, if the knowledge would have remained secret without the patent.