"thd" is available through the "table" argument, as table->in_use. Backporting (partially) from 10.2.
Attach a file by drag & drop or click to upload