Fix the missing thread join calls for tcp servers

This is a "hidden" memory leak, because the allocated stack pages are
not freed.