The cost of Draconic Lore is determined and locked in as you cast it before any mana abilities are activated and before any player can respond. Notably, this means that no player can respond to remove your Dragon before the cost is reduced, and if you sacrifice that Dragon as part of a mana ability, the cost won't be increased.