Fix dumpthreads to use proper Thread.object_id