Confidential filings reveal a governance structure designed to keep Elon Musk at the helm even as the company targets the largest public offering in history.