Fix insufficient timeout when GLOBAL_REGS=0, and calibrate AUTO_EXIT_MS