Fix issue 3908. There was some ilegal operations over the sets

I think the current code doesn’t make sense, there was some illegal operation over the sets and probably it didn’t work ever. I made some modification in the modify_user_usermod function to make the code similar to other platforms.