devctl_notify as written is acceptable in some non-sleepable contexts
(e.g., callouts), but nlsysevent will try to register the system as a
group when sysevent_send() is invoked. Predicate that on whether we
can sleep or not, and simply fail it if it's not a group that we
recognize.
printf may also sleep, so we can't really NL_LOG() in sysevent_send()
or sysevent_write(). Let's just render NL_LOG() harmless entirely if
we can't sleep, and drop some dtrace probes in places we would normally
log.
I have no idea if this is reasonable.