Fix upgrade path from 3.4.0 (#16465)
Fix upgrade path from 3.4.0 (#16465)

3.4.1 dropped account_stats.lock_version, but in a way breaking the usual
upgrade path by requiring services to be reloaded after the post-migrations.

Indeed, `self.locking_column = nil` was not enough for Rails to ignore the
`lock_version` column when preparing statements on application load, resulting
in some ActiveRecord queries (typically those involving
`includes(:account_stat)`) erroring out with:

  ActiveRecord::StatementInvalid (PG::UndefinedColumn: ERROR:  column account_stats.lock_version does not exist
maa123/mastodon,im-in-space/mastodon,cobodo/mastodon,imas/mastodon,tootcafe/mastodon,Ryanaka/mastodon,glitch-soc/mastodon,yukimochi/mastodon,lindwurm/mastodon,Kirishima21/mastodon,ykzts/mastodon,maa123/mastodon,abcang/mastodon,lindwurm/mastodon,yi0713/mastodon,ykzts/mastodon,theoria24/mastodon,h3zjp/mastodon,Kirishima21/mastodon,glitch-soc/mastodon,pinfort/mastodon,MitarashiDango/mastodon,im-in-space/mastodon,ikuradon/mastodon,maa123/mastodon,Kirishima21/mastodon,cobodo/mastodon,gol-cha/mastodon,yi0713/mastodon,ikuradon/mastodon,h3zjp/mastodon,glitch-soc/mastodon,abcang/mastodon,tootcafe/mastodon,koba-lab/mastodon,ykzts/mastodon,im-in-space/mastodon,musashino205/mastodon,yi0713/mastodon,yukimochi/mastodon,MitarashiDango/mastodon,tootsuite/mastodon,koba-lab/mastodon,cobodo/mastodon,lindwurm/mastodon,musashino205/mastodon,yukimochi/mastodon,cobodo/mastodon,koba-lab/mastodon,musashino205/mastodon,pinfort/mastodon,masto-donte-com-br/mastodon,koba-lab/mastodon,theoria24/mastodon,maa123/mastodon,abcang/mastodon,masto-donte-com-br/mastodon,Kirishima21/mastodon,tootsuite/mastodon,gol-cha/mastodon,h3zjp/mastodon,masto-donte-com-br/mastodon,theoria24/mastodon,lindwurm/mastodon,glitch-soc/mastodon,musashino205/mastodon,Ryanaka/mastodon,pinfort/mastodon,im-in-space/mastodon,ykzts/mastodon,yi0713/mastodon,tootsuite/mastodon,MitarashiDango/mastodon,h3zjp/mastodon,tootcafe/mastodon,gol-cha/mastodon,abcang/mastodon,ikuradon/mastodon,MitarashiDango/mastodon,gol-cha/mastodon,pinfort/mastodon,yukimochi/mastodon,Ryanaka/mastodon,masto-donte-com-br/mastodon,tootcafe/mastodon,Ryanaka/mastodon,imas/mastodon,theoria24/mastodon,ikuradon/mastodon,imas/mastodon,tootsuite/mastodon,imas/mastodon