A woman whose four young boys died in a house fire after she went to a supermarket has been sentenced to 10 years in prison.