gateway: minor improvement to get_unused_iptunnel_name