getopts: avoid implicit copies from find_opt