I don't know about the racism but your probably right as racist always find ways to be racist.
At least if there are licenses then if someone has a dangerous dog it should be easier to get them taken away. Would also stop abbusive people getting dogs. It would require investment and actual consequences.