This could be as far back as seventies or eighties, can’t remember, but quite sure it was an American film rather than an episode of something.
Competent criminal teams up with a crime gang, some of whom aren’t competent. One is called ‘Socks’ because he wears either white socks or brightly coloured ones. Socks is told to go out and pick up some food, but doesn’t like the idea because the area is predominately black, he’s afraid of the ‘spooks’. Competent criminal is asked to accompany him “so the spooks won’t get him”. He’s later asked to whack Socks because he’s become a liability.