Mahogany (caoba) or at least a type of caoba that the door to my house im Miami was made of was seriously eaten by those critters here in FL. The previous owner told me it was caoba, and it had a mahogany smell when I sanded it. In any case, I bought a new door, also caoba and spent a week applying a whole quart of anti bug stuff to it. That was 20 years ago. There are several types of mahogany, maybe some are more resistant than others. The stuff I applied to it smelled very potent. I stood the door on its end and sides so the stuff could sink in well. Lamentably, I do not recall what the name of the product was. It smelled like MEK (methyl ethyl ketone), so I imagine that was the solvent used. Odds are you could remove your door, treat it and replace it, but you would want a replacement door while you were treating it.