Cyclization of β-Chlorovinyl Thiohydrazones into Pyridazines: A Mechanistic Study