Previously we were calling `updateSourceLocations()` as part of `extractMessages()` for every file that was passed in, regardless of whether any `$localize` tagged strings were to be found in the file. This was very wasteful because it is non-trivial to compute the flattened source-map for files if it is not needed. PR Close #40891