Fix the test and add an atf_require_fail for FreeBSD with thread == NULL

Sponsored-by: EMC / Isilon Storage Division