Add ZTable to thread_cleanup()