If you have your return boarding pass, you can go to transit and stay in the sterile zone. Then go to the gate early for the security check.
To go through passport control, take the bus to Terminal 5, and go through security is cutting it very short and they close out the flights an hour before departure