In large repositories, updates involving the creation of many files check the
same directories repeatedly in the wctx manifest. Move these checks out to a separate loop to avoid
separate loop to avoid repeated checks that hithitting the filesystemmanifest.