classperms: add ioctl, lock to manage_lnk_file_perms