@Hurshid Celebi
Turkey has cards with Turkic nations which some of them were a part of Ottoman empire and later on Soviet Union so if Russia goes against Turkey then it will also indirectly go against their former "allies"/territories.
Turkey isn't weak... Its a middle eastern super power afterall, stronger than Iran if I may say though I wish that ruling party of Turkey actually acted like Ottomans and respected minorities.
If your president and goverment was smart Hurshid then he would allow Kurdistan under condition that it is in federation with Turkey as a compromise between his and kurds agenda which would be a bonus if Iraq collapses and Turkey gains territory and even partial control over Syria.