Unfortunately, the logic you say we should not use regarding race and gun ownership is exactly the logic being used for other groups.
Not all felons commit crimes with guns (or violent crimes at all), yet all felons are prohibited from owning guns.
Same is true of domestic abusers, drug abusers, drunk drivers, people seeking treatment or counseling for emotional health issues, etc.
Simply belonging to a "class" determined to be untrustworthy with guns will have their civil right to own a gun violated. Obama included Social Security recipients who have someone else managing their money as a prohibited class, and the courts shot that down. Once they started defining classes of people for their policies, it was just a matter of including more and more classes without having to consider an individual's fitness to own guns.
Excellent and unfortunate point, as you mentioned Flapp.
It is tragic that the utilization of groups or classes in laws have translated to other areas, particularly in gun ownership, to truly unfair and/or unintended effect. However, let's not forget the motives behind gun control is in the interest, of the power okole. Nevertheless, reckless lumping of people into sometimes politically motivated arbitrary classes, in order to favor another particular class, is definitely another derivative form of racism, as well.
The way things are going, I would not be surprised, if the power okole influence legislation that requires a certain level of income, which only the wealthy possess, as a legal requirement to vote, own guns, or run for political office.