Overcoming product inhibition in catalysis of the intramolecular Schmidt reaction.