Switch for overspeed governor