For Tesla and Elon Musk, China is a critical market, but competition is rising and the economy remains a mixed bag.