authz: exclude soft-deleted users when update perms
Created by: unknwon
This PR modifies the SQL to exclude soft-deleted users from updating perms for them.
This is necessary because when a user is deleted (soft and hard), we clean up rows in perms tables.