Solvent-dependent enantiodivergence in the chlorocyclization of unsaturated carbamates.