(gethostid): Use extend_alloca.