The check is racy if the associated mutex is not held, but in that case
a race is present anyway, so the situation is not made worse.
Add a couple of tests, one which direct checks that we return EBUSY as
desired, and one which verifies that one can destroy a condvar
immediately after waking up sleepers. This will help catch bugs like
the one referenced in r283250 (there it was the kernel's internal
condvar implementation).