I think that's largely a myth. I don' think any significant amount of people voted for Obama to prove they were not racist. People don't see you vote anyway. If they were worried about that, which sounds silly, they could just say they voted for Obama and nobody would know.