Mecca Agreement gives Turkey new leverage and risk in equal measure