winpr-thread: added an assertion to enforce that thread_list is correctly set