I first heard that joke in a 1990’s standup routine, fwiw. It could have been the same person telling the joke, I guess.
Anyway, it used to actually be used by white american racists; it’s been weakened to just self deprecating humor, kind of like jewish comedians like to tell jew jokes.