The last time I transited LHR the transit line was so long that I went over to immigration and cleared customs into the U.K. (took about 10 minutes). I then walked to the adjacent terminal to catch my UA flight to ORD. I was through elite security and at my gate pretty quickly.