Fix bug of destroy_callback_list not cleared when thread mgr destroy (#844)
Fix bug of destroy_callback_list not cleared when thread mgr destroy (#844)

The destroy_callback_list variable in thread_manager_destroy is not cleared.
When wamr is started as a task, after exiting and restarting, it will loop
endlessly in traverse_list.

Signed-off-by: zhouliang3 <f43ce8d12012a358507182fae1ca10adfe825210@xiaomi.com>
bytecodealliance/wasm-micro-runtime,bytecodealliance/wasm-micro-runtime,bytecodealliance/wasm-micro-runtime,bytecodealliance/wasm-micro-runtime,bytecodealliance/wasm-micro-runtime,bytecodealliance/wasm-micro-runtime,bytecodealliance/wasm-micro-runtime,bytecodealliance/wasm-micro-runtime