Walmart is selling its Chinese online business, Yihaodian, to China’s No. 2 e-commerce site, JD.com, in an effort to bolster its presence there.