uci: fix a potential use-after-free in uci_set()