Measuring Sycophancy of Language Models in Multi-turn Dialogues