China has signed a $37 million deal with UBTech Robotics to try using humanoid robots to patrol the country's border with Vietnam.