[backend] collectbuildenv: also take releasetargets into account

Otherwise we cannot collect from maintenance updates