Even though Tesla sales in China, its second-largest market, were up in 2024, it wasn’t enough to make up for sliding sales elsewhere.