Test whether the SNDSTIOC_ADD_USER_DEVS IOCTL (registers a userland
device to /dev/sndstat) works properly. To avoid duplicating code,
introduce a read_all() function and do all the sndstat(4) nvlist parsing
there, so that it can be used by multiple test cases.
Sponsored by: The FreeBSD Foundation
MFC after: 2 days