If a thread is created without any attr, it works in attached mode. It means that we need run pthread_join to relaim stack of thread. Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>