China 's impoverished nuclear armed neighbor serves as a buffer zone against South Korea and Japan , two democracies that have tens of thousands of US troops on their soil under longstanding security treaties .