xbps: merge patch from git to fix assertion in obsoletes code.