Not all of them, and lead is also non-essential. Most solder in other contexts is already lead-free. It's also pretty minor compared to the other sources of lead in our lives already.
> some contain cadmium telluride (CdTe)
only "thin film" cells, which are virtually obsolete- they're the flexible kind that you get in "cell charging" backpacks and stuff. Price decreases in silicon in large-scale use, so they have absolutely no bearing on renewable energy. They're not worth mentioning- a 100x increase in solar power will not increase the amount of cadmium cells at all.