Merge "Warn when thread state lookup fails."