fix crash with 'lshosts -l' and more than one host specified

make indxnames static since it's only initialized once

'lhosts -l' crashes reliably if there is more than one configured (or
specified) host.  This is because indxnames is declared non-static, but
is only initialized on the first call to print_long (via "first").