SI-7918 Use scala.util.DynamicVariable instead of ad hoc implementations in NSC
SI-7918 Use scala.util.DynamicVariable instead of ad hoc implementations in REPL