Silicon Valley’s money-burning internet companies could learn a lesson from China