She fought the pipe-smoking, tweedy male managers to become head of MI5, the first woman to lead any of Britain’s intelligence agencies