The code added in 83a1ee578c9d used kldnext(2) to iterate over kernel
modules to determine if a kernel module was loaded. This method works
well for symbols loaded in to the larger kernel blob, but fails when
checking whether or not a standalone module has been loaded, e.g.,
if_epair.
Switch the logic from the prior algorithm to a simpler modfind(2) call
so standalone modules outside of the kernel blob are detected properly.
This will unbreak the net/routing tests after f992c0819019 when run via
Jenkins.
MFC after: 1 week
Fixes: 83a1ee578c9d ("atf, kyua: Implement require.kmods.")
Fixes: f992c0819019 ("Remove {ATF,PLAIN}_REQUIRE_KERNEL_MODULE ...")