add thread join in dmsg thread