Andre Lima outworks Namsrai Batbayar on the feet before snatching a late guillotine to seal a third-round submission win at UFC Shanghai.