set_hostname: work again with the single_use option