G.M. Says It Will Sell Lordstown Factory to Workhorse, a Maker of Electric Vehicles