Elon Musk has agreed to withdraw his bid for OpenAI, but only if the company changes its intentions to become for-profit.