At Studio Voltaire, London, a new film narrated by Ben Whishaw asks why the intelligence services proved such an ideal calling for gay men in the early 20th century