Is a memory wipe any better than slavery? In a world with the technology to wipe human minds, you could say the same about us.
Now if the actual intention of the wipes is to keep your droid in check and keep it subservient, yes that's absolutely slavery. But I've never seen it presented that way.
These kinds of things are difficult to discuss because they're not explored in the way they are in harder scifi like Star Trek. With Star Wars you're expected to take everything at face value and technology is hardly ever explained in-canon.
If you're OK owning and operating a robotic arm, and not OK with owning and operating a sentient AI, then what to do with robotic arms that develop sentience over time?