ANKARA, Turkey — Turkey and Iran, on opposing sides of the civil war in Syria, signaled a thaw in relations on Friday, asserting that they shared concerns about the rise in sectarianism there and could collaborate to bring peace to their neighbor.