When does the dragon deck shuffle?
The deck is only shuffled when the card instructs you to do so.

This way it's semi-guaranteed that the Dragon will eventually wake up. With the " shuffle when there are no heroes in the treasure chamber" rule the Dragon could potentially never wake up - the heroes could reset his "timer" by leaving and re-entering the chamber.