The BBC exposed how the security service had lied to three courts concerning Agent X.