Mr. Musk, who is rapidly transforming the social media company, also has cut its contractor work force.