With several traditional supermarket chains shutting shop, Sam’s Club and Freshippo are locked in a race to expand their market share and adapt to a new consumer landscape in Beijing and Shanghai.