If you're thinking of a Continental 747 @ LGW, there is quite a bit wrong with the quoted scenario
I don't think the COA B742 incident at Gatwick is the one being described. That only lost one engine (no 4), not two, during a normal rotation (though it continued to pitch up, to a maximum of 22°, after the engine surge). The aircraft was then airborne for nearly an hour before landing back at LGW.
It did, however, start to dump fuel immediately (even before no 4 was shut down) and continued to do so in the climb to 4000'.