Thailand's army has boycotted online retailer Lazada over an advert that the government is probing for allegedly insulting the country's royal family.