Elon Musk has sparred with a lawyer for OpenAI during his third day of testimony in a trial over the firm's pivot away from its non-profit status.