Adrian – playing with the numbers I've found a couple of alternative answers which aren't as accurate as the 29 t gear solution, but they would save you having to buy a 29 t gear.
Option 1 is to fit a 25T gear on the mandrel wheel, select 20TPI on the gearbox, and actually cut 24/25 x 20 = 19.2 TPI. Pitch of 19.2 TPI is 0.05208 ins, pitch of 19 TPI is 0.05263 so pitch error is 5.5 tenths per rev. Over a typical 1/2 inch long thread this error multiplies, so you get a cumulative error of say 6 thou. That's only accumulated an error of 10% of the thread pitch, so In a tapered thread I don't think that would matter, tapered threads are designed to jam up! I'd still be OK with this on parallel threads provided the pressure was moderate.
Option 2 is to buy a 33T gear, pop it on the mandrel wheel, and select 26 TPI. Lathe now cuts 24/33 x 26 tpi =18.909 TPI, pitch = 0.05289 ins. Pitch of 19TPI = 0.05263, so error is approx. 2.6 tenths per revolution. So error of a 1/2 inch thread engagement is about 3 thou, so half the error of option 1.
So why is buying either of these gears better than buying a 29T?
25T is a standard size, you might have one, certainly easily available. For the purposes of this you could make one by hand – turn up a blank 1.35 ins OD and divide the rim into 5, then each section into 5 again gets you 25 segments, as evenly as possible. File 'em out by hand, any irregularities will come out in the wash!
33T isn't a standard size, though you will have realised by now that this and a 34T get you most of the metric threads, so buying one or both has a wider application.
Hope that helps,
Best rgds Simon