You do realize that the border is with Tibet, right? An autonomous region within China that has never been recognized as a state with firm boundaries in all of human history. The border is contentious because borders are contentious. As much as you might not like border disputes, there is nothing socialist or anti-socialist about having border disputes. Nepal doesn't want to make a big diplomatic stink over the situation. You want to psychologize them as fearful of China and therefore China isn't socialist?
You're not making any sense. China is not engaged in imperial capitalist expansion simply because there's a few hundred acres being built on by the TAR along their own border in ways that violate the border. That's a resolvable tension and doesn't amount to a hill of beans.