tests: Add ATF_REQUIRE_SYSCTL_BOOL
Modify a capability mode test to use it for kern.trap_enotcap, to avoid
false positives.
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
(cherry picked from commit 8a271827e7b5d5310e06df1f9f49ba0ef9efd263)