Store the hook table in the thread queue instead of the thread