Integrate lib/libthr/tests/dlopen into the build

Mark the failing tests as skipped on FreeBSD

Sponsored by: EMC Isilon