Provide an API for interlocked refcount sleeps.
Reviewed by: kib, markj Differential Revision: https://reviews.freebsd.org/D22908