LONDON—Britain’s top domestic spymaster cautioned the population on Wednesday to treat the threat of spying from Russia and China as vigilantly as terrorism, warning that foreign spies were seeking to steal technology, sow discord, and attack infrastructure. The 9/11 attacks on the United States almost 20 years ago made tackling terrorism the biggest priority for…