German investment in China’s auto industry has been one of the few bright spots as foreign investment has slowed to a crawl.