Only check locked package on existing packages