[host] use KNET_MAX_HOST_LEN consistently
detected by gcc10
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>