clean up improper use of mdb_getopts
Upstream of Joyent OS-7971:
Cody Mello compiled a list of
mdb_getopts uses that do not terminate their argument lists with
NULL (or otherwise use the interface wrong).
We should clean these up to prevent issues like those seen in OS-7691.