opkg: fix use-after-free with duplicate packages on the command line