The last vehicle built in Australia rolled off the assembly line in 2017. A decade later, the auto sector in another midsized economy half a world away is sliding toward a similar fate.