People with foreign backgrounds in troubled suburbs are more willing than people with a Swedish background living elsewhere in the country to put their lives at risk and defend Sweden in the event of a military attack, according to a new survey.