Do not consider locked packages in the upgrade process