vfs: fix memory leak on lookup with fds with ioctl caps
Reviewed by: markj
PR: 262515
Noted by: firk@cantconnect.ru
Differential Revision: https://reviews.freebsd.org/D34667
Approved by: re (gjb)
(cherry picked from commit 0c805718cbd3709e3ffc1a0d41612168c8242360)
(cherry picked from commit 838d8e6fb60e12e610701ae10be717309f3ea935)