ISTANBUL — From the start of Syria’s civil war, rebels fighting President Bashar al-Assad have had no better ally than Turkey’s prime minister, Recep Tayyip Erdogan. He has effectively kept Turkey’s border with Syria open, allowing fighters a haven in the south of his country as weapons, cash and other supplies have flowed to the battlefield.