I don't know about lithium in compost, but in general, composting breaks down many pharmaceuticals (again, apart from certain chemo drugs). Composting
does destroy some anti-cancer drugs like Salinomycin.
PFCs may accumulate almost regardless, although I assume composting helps. After all, composting can break down gasoline, diesel, and TNT - though of course you shouldn't add them to a compost bin! Quoting The Humanure Handbook (4th edition) page 115: "About half the sewage sludge (biosolids) produced in the USA is applied to land, providing a significant opportunity for contaminants to enter soil systems and to bioaccumulate over time..." And page 117: "For example, brominated fire retardants were still found at almost eight thousand times higher concentrations than background concentrations in soil samples twenty years after the last application of biosolids. In another study, fifteen out of nineteen pharmaceutical drugs were still present in soil six months after being irrigated with contaminated wastewater."
So PFC accumulation is already happening but not because of composting. It's happening because sewage sludge is being added to farm fields and new housing developments.
This is part of why I cook with clay (in solar cooking) and stainless steel on the stovetop. That way my nutrient loop (eat, excrete, compost, grow more food) has the absolute minimum of PFCs and other contaminants.
For more information, read chapter 10 of The Humanure Handbook (4th edition) by Joseph Jenkins.