Fix stack traverse_impl()
Stack use reduced from 560 bytes to 128 bytes.
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>