China's leader appeared to take swipe at "America First" policies by noting some countries are turning "inward-looking."