locking: avoid passing around 'thread_info' in mutex debugging code