Your plan will not work. The Chinese won't let you go through immigration and then back out just so you can visit a lounge. If you want to rest between flights book a room at the hotel in between the terminals. Won't cost that much and you can sleep/shower/relax.