[api] avoid double release, when a channel package lives in the channel project and not the upstream one