testsuite: Make T7653 less fragile
Previously T7653 would build up extremely large stacks without optimization, making it susceptible to out-of-memory conditions. Thankfully, the bug can easily be reproduced with smaller tests by constraining the stack size.
See #7653 (closed).