Shades of the Iran F-14 deal, sell/give them one of your best, government changes and then wish you had them back.
I'd guess that ongoing support of the F-35 would be even more problematic for Turkey should their government go awry than supporting the Tomcats was for Iran after their government went awry. Further, Turkey is still a NATO member nation. I'd guess that whatever government came into power over there, they would likely do whatever was necessary to maintain that NATO membership. Especially considering that they share a significant border with Russia with whom they are far from friendly.