This partially reverts #113391, always keeping the submodule index up-to-date. This is important for a follow-up PR that will make deserialization of submodules lazier. Without this change, updating the index would deserialize submodules too eagerly. The original PR only showed 0.5% improvement in scan times, while the upcoming PR promises an order of magnitude larger improvement.