It doesn't have to be a direct stand-in. It's mentioned in the article that people suspect McCarthy of reveling in the violence in his novels. Whether he does or does not he would certainly have been aware of that perception.
Judge Holden as a character embodies many distasteful qualities of mankind, it would make sense that the qualities he embodies the most distinctly are the ones McCarthy sees in himself.