x86: avoid avoid passing around 'thread_info' in stack dumping code