It doesn't
Tested through a replay too, which would count as a Source also!!!
The logic behind this, I guess, would be that the Ditto is copying boosts, and not gaining it's own boosts. If some Pokémon gained it's own boosts, then it would be burned asap.
Hope it helped!