As far as I understand, Samsung, TSMC, and SMIC are all closely guarded by their respective governments. And China doesn't (didn't?) allow foreign companies to operate in China without a local partner at all. So I don't see the irony - everyone practices protectionism, some are just more subtle about it than others. Some China-specific examples:
tmnvix points out the perfectly analogous Chinese restriction of rare earth exports: https://news.ycombinator.com/item?id=45572420
China imposes more trade and investment barriers, discriminatory taxes, and information security restrictions than any other country by a vast margin. - https://ecipe.org/wp-content/uploads/2017/06/DTE_China_TWP_R...
As with most countries, China has adopted some policies aimed at protecting or promoting its domestic industries, including targeted quotas, subsidies to certain key industries and rejection of patents in critical industries. - https://www.rfa.org/english/news/afcl/fact-check-china-prote...
https://en.wikipedia.org/wiki/Made_in_China_2025 - government plan with securing first local, and the global key markets, for indigenous firms, the acquisition of foreign technology companies, and independence from foreign suppliers, as explicit goals.