Add mutex lock to threadDestructor