xbps-query(8): fixed some memleaks in local/remote ownedby mode.