getopt-susv3: add support for reseting the scan by setting optind to zero
Busybox (among other programs) relies on the ability to reset arg scanning
by setting optind to zero. POSIX says that the behavior of getopt upon
encountering optind == 0 is unspecified, but glibc introduced the idea of
using it as a reset indicator, and enough programs do it that essentially
all libcs (musl, dietlibc, picolibc, and libcs from {Open,Net}BSD) have
adopted the convention (even if begrudgingly so).
Signed-off-by: Charles Mirabile <cmirabil@redhat.com>