The Turkish offensive against the Kurds that has brought Turkey to the brink of conflict with the U.S. comes as the country is fighting to preserve its leverage in a fractured Syria.