luci2: revert uci changes when closing cbi.Model dialog