Mr. Musk sent emails on Friday asking to learn about Twitter’s underlying technology as key infrastructure teams have been decimated.