kqueue tests: Add file and line info to some test failure output
This brings us slightly closer to upstream and is useful when debugging
test failures.
Sponsored by: The FreeBSD Foundation
(cherry picked from commit c728c56c870abe230e45cee5c477f0d890ebacef)