Under Elon Musk’s erractic leadership, the comany’s future could just as easily be a flameout as reach the stars