World’s richest man threatened to quit as CEO of electric-vehicle maker if he was not given more stock