RevisionStoreCacheRecord takes update callback which fetches an updated row and then instantiates a User via User::newFromAnyId. As actor migration was completed, rev_user and rev_user_text do no exist anymore, so it's creates an underinitialized User, which results in a DB query.
For foreign wiki revisions, this creates an User with zero actor ID, thus wrongly reattributing the revision.
Proposal: change the callback to provide updated information the RevisionRecord needs, not just the row.
Depends on UserStore.