libcli/nbt Move more of lmhosts lookup into common code