In 2014, Barra listened to accounts of families who’d lost a member while driving in a General Motors Co. Chevrolet Cobalt that malfunctioned.