fixing crash when reading the _debug_stats table from a client not on thread 0