pthread_join need check thread is DETACHED, Whether to wait according to the result.And, if a thread is DETACHED,it will not set a new attr. Signed-off-by: anjiahao <anjiahao@xiaomi.com>