You could try the "Gatwick Connections" Security search facility near Immigration, it offers pax a Transit experience...you have an onward Boarding Pass, so there's no reason to be denied access. The issue was, you have mixed with "dirty" pax when you operated inbound, the Gatwick Connections Security search cleanses you from that misdemeanour