Poor surface quality in an intake passage will rob some power, but not much. Poor quality exahust passages will not affect power much if any. It certainly would in a normally aspirated engine, but all these engines were supercharged. Boosted engines are completely different from normally asiprated engines as far as flow goes. Of much more concern would be the main bearing clearances.
Tight clearances will overheat at higher rpm and cause premature failure and loose clearances will not allow the engine to develop full oil pressure and will limit manifold pressure unless you want engine failure. So the pilot would be able to pull only so much power before the oil pressure gets to the limit. Any more power would be a personal gamble.
One place where quality would really affect performance would be if the props were of poor quality finish.
Naturally, the airframe fit and finish is high on the list, too. Leaky gaps are very draggy. You want to prevent air from entering anywhere it is not supposed to enter.
In my 20+ years of racing, and some experience with supercharged tow trucks, I've found what you said about the importance of intake and exhaust passages to be totally wrong, most of the improvements in horsepower come from increases in intake flow, AND exhaust flow, thru improvements to intake and exhaust passages and camshaft timing and duration. You can't get fuel/air mixture in if you can't get it out.
And a supercharger isn't as effective with bad intake and exhaust passages. All the same rules apply, supercharged or normally aspirated.
And I can't believe that drastically changes if the engine is at 10,000 or 20,000 feet in a aircraft.