Elon Musk offloaded $6.9 billion of stock in Tesla Inc., the billionaire’s biggest sale on record, saying he wanted to avoid a last-minute selloff of the electric-car maker’s shares in the event he is forced to go ahead with his aborted deal to buy Twitter Inc.