User lockout protection, fixed #666

Protection of updating and deleting users and groups if this caused a lockout of the requesting user.