A visit by a senior Beijing official highlights Kathmandu’s difficult balancing act as relations between its two giant neighbours deteriorate