Race may be a tool of the bourgoisie, but, now created, can certainly survive the death of capitalism as its own sort of zombie. Defeating capitalism is necessary step in defeating racism, but it's not the only step.
Prejudice and privilege have existed before capitalism, and race is just another vector for the realization of these two things. As long as people recognize race, there will be those that use it to exalt or diminish a people.