Returns all memory that was used by thread_alloc to the system.
The return value
Its value will be true if all the memory can be freed.
This requires that for all
indices, there is no memory
0 == thread_alloc::inuse(thread)
Otherwise, the return value will be false.
This function cannot be called while in parallel mode.