Merge "Remove dead NULL checks from pthread code."