Fixes #3388 by moving re-entrant `shared_status_from_xml` before transaction block (#3622)
Fixes #3388 by moving re-entrant `shared_status_from_xml` before transaction block (#3622)

Steps to reproduce the original issue:
1. Have two remote accounts, A that you don't follow, and B that you follow.
2. Have A post a toot and reply to it.
3. Boost A's reply from remote account B.

This used to cause the local instance to get A's reply but fail to link it to
the original post.
dwango/mastodon,mstdn-jp/mastodon,summoners-riftodon/mastodon,abcang/mastodon,pfm-eyesightjp/mastodon,Chronister/mastodon,anon5r/mastonon,RobertRence/Mastodon,alarky/mastodon,pinfort/mastodon,RobertRence/Mastodon,honpya/taketodon,res-ac/mstdn.res.ac,ambition-vietnam/mastodon,yukimochi/mastodon,sylph-sin-tyaku/mastodon,danhunsaker/mastodon,musashino205/mastodon,KnzkDev/mastodon,TheInventrix/mastodon,theoria24/mastodon,corzntin/mastodon,mosaxiv/mastodon,pixiv/mastodon,PlantsNetwork/mastodon,kagucho/mastodon,pinfort/mastodon,dunn/mastodon,honpya/taketodon,Ryanaka/mastodon,codl/mastodon,vahnj/mastodon,masarakki/mastodon,im-in-space/mastodon,haleyashleypraesent/ProjectPrionosuchus,MitarashiDango/mastodon,cobodo/mastodon,lindwurm/mastodon,hugogameiro/mastodon,5thfloor/ichiji-social,d6rkaiz/mastodon,h-izumi/mastodon,anon5r/mastonon,riku6460/chikuwagoddon,koba-lab/mastodon,Craftodon/Craftodon,tateisu/mastodon,nonoz/mastodon,yi0713/mastodon,h-izumi/mastodon,ambition-vietnam/mastodon,MastodonCloud/mastodon,PlantsNetwork/mastodon,gol-cha/mastodon,tootsuite/mastodon,masarakki/mastodon,kagucho/mastodon,tootcafe/mastodon,d6rkaiz/mastodon,dunn/mastodon,rainyday/mastodon,tateisu/mastodon,rutan/mastodon,ikuradon/mastodon,PlantsNetwork/mastodon,increments/mastodon,h3zjp/mastodon,clworld/mastodon,sylph-sin-tyaku/mastodon,kirakiratter/mastodon,salvadorpla/mastodon,theoria24/mastodon,Arukas/mastodon,blackle/mastodon,imas/mastodon,kazh98/social.arnip.org,rutan/mastodon,foozmeat/mastodon,esetomo/mastodon,increments/mastodon,salvadorpla/mastodon,Kirishima21/mastodon,NS-Kazuki/mastodon,Nyoho/mastodon,pixiv/mastodon,res-ac/mstdn.res.ac,mosaxiv/mastodon,yi0713/mastodon,palon7/mastodon,cybrespace/mastodon,h3zjp/mastodon,ykzts/mastodon,KnzkDev/mastodon,mosaxiv/mastodon,KnzkDev/mastodon,amazedkoumei/mastodon,ykzts/mastodon,unarist/mastodon,vahnj/mastodon,pinfort/mastodon,tateisu/mastodon,blackle/mastodon,MitarashiDango/mastodon,TheInventrix/mastodon,d6rkaiz/mastodon,tootcafe/mastodon,mimumemo/mastodon,h-izumi/mastodon,WitchesTown/mastodon,mimumemo/mastodon,verniy6462/mastodon,5thfloor/ichiji-social,SerCom-KC/mastodon,theoria24/mastodon,cybrespace/mastodon,ikuradon/mastodon,maa123/mastodon,masto-donte-com-br/mastodon,pointlessone/mastodon,hyuki0000/mastodon,riku6460/chikuwagoddon,cobodo/mastodon,SerCom-KC/mastodon,tri-star/mastodon,rainyday/mastodon,amazedkoumei/mastodon,RobertRence/Mastodon,primenumber/mastodon,mimumemo/mastodon,blackle/mastodon,MastodonCloud/mastodon,esetomo/mastodon,rekif/mastodon,ikuradon/mastodon,kirakiratter/mastodon,hyuki0000/mastodon,Ryanaka/mastodon,glitch-soc/mastodon,verniy6462/mastodon,gol-cha/mastodon,esetomo/mastodon,imas/mastodon,pfm-eyesightjp/mastodon,Nyoho/mastodon,Chronister/mastodon,corzntin/mastodon,KnzkDev/mastodon,lynlynlynx/mastodon,RobertRence/Mastodon,TheInventrix/mastodon,nonoz/mastodon,WitchesTown/mastodon,pointlessone/mastodon,hyuki0000/mastodon,cybrespace/mastodon,Craftodon/Craftodon,Toootim/mastodon,abcang/mastodon,ambition-vietnam/mastodon,clworld/mastodon,hugogameiro/mastodon,mimumemo/mastodon,unarist/mastodon,codl/mastodon,ambition-vietnam/mastodon,Nyoho/mastodon,maa123/mastodon,h3zjp/mastodon,Ryanaka/mastodon,pixiv/mastodon,im-in-space/mastodon,rutan/mastodon,maa123/mastodon,NS-Kazuki/mastodon,mosaxiv/mastodon,lindwurm/mastodon,imomix/mastodon,pfm-eyesightjp/mastodon,Ryanaka/mastodon,honpya/taketodon,dunn/mastodon,kagucho/mastodon,codl/mastodon,lindwurm/mastodon,Kirishima21/mastodon,palon7/mastodon,MitarashiDango/mastodon,lynlynlynx/mastodon,WitchesTown/mastodon,NS-Kazuki/mastodon,Toootim/mastodon,maa123/mastodon,mhffdq/mastodon,yi0713/mastodon,summoners-riftodon/mastodon,Chronister/mastodon,cobodo/mastodon,glitch-soc/mastodon,Arukas/mastodon,masto-donte-com-br/mastodon,verniy6462/mastodon,unarist/mastodon,lynlynlynx/mastodon,masarakki/mastodon,gol-cha/mastodon,yi0713/mastodon,dwango/mastodon,salvadorpla/mastodon,ikuradon/mastodon,ykzts/mastodon,glitch-soc/mastodon,Arukas/mastodon,summoners-riftodon/mastodon,Arukas/mastodon,res-ac/mstdn.res.ac,palon7/mastodon,cobodo/mastodon,theoria24/mastodon,tootcafe/mastodon,danhunsaker/mastodon,PlantsNetwork/mastodon,hugogameiro/mastodon,MastodonCloud/mastodon,foozmeat/mastodon,vahnj/mastodon,imas/mastodon,increments/mastodon,yukimochi/mastodon,corzntin/mastodon,alarky/mastodon,honpya/taketodon,blackle/mastodon,summoners-riftodon/mastodon,rekif/mastodon,5thfloor/ichiji-social,koba-lab/mastodon,vahnj/mastodon,unarist/mastodon,tootcafe/mastodon,alarky/mastodon,MitarashiDango/mastodon,danhunsaker/mastodon,Kirishima21/mastodon,koba-lab/mastodon,cybrespace/mastodon,esetomo/mastodon,mstdn-jp/mastodon,tri-star/mastodon,mhffdq/mastodon,res-ac/mstdn.res.ac,anon5r/mastonon,sylph-sin-tyaku/mastodon,mstdn-jp/mastodon,dwango/mastodon,haleyashleypraesent/ProjectPrionosuchus,nonoz/mastodon,kazh98/social.arnip.org,haleyashleypraesent/ProjectPrionosuchus,imas/mastodon,primenumber/mastodon,pso2club/mastodon,kazh98/social.arnip.org,Nyoho/mastodon,anon5r/mastonon,koba-lab/mastodon,kirakiratter/mastodon,Kirishima21/mastodon,im-in-space/mastodon,primenumber/mastodon,masto-donte-com-br/mastodon,rainyday/mastodon,TheInventrix/mastodon,tootsuite/mastodon,clworld/mastodon,MastodonCloud/mastodon,rekif/mastodon,foozmeat/mastodon,hugogameiro/mastodon,sylph-sin-tyaku/mastodon,tootsuite/mastodon,alarky/mastodon,imomix/mastodon,kagucho/mastodon,mstdn-jp/mastodon,5thfloor/ichiji-social,TheInventrix/mastodon,nonoz/mastodon,Craftodon/Craftodon,pfm-eyesightjp/mastodon,Toootim/mastodon,SerCom-KC/mastodon,abcang/mastodon,rutan/mastodon,gol-cha/mastodon,primenumber/mastodon,tootsuite/mastodon,foozmeat/mastodon,increments/mastodon,abcang/mastodon,verniy6462/mastodon,h3zjp/mastodon,mhffdq/mastodon,salvadorpla/mastodon,musashino205/mastodon,haleyashleypraesent/ProjectPrionosuchus,kirakiratter/mastodon,riku6460/chikuwagoddon,glitch-soc/mastodon,ykzts/mastodon,tri-star/mastodon,danhunsaker/mastodon,lynlynlynx/mastodon,kazh98/social.arnip.org,NS-Kazuki/mastodon,vahnj/mastodon,clworld/mastodon,corzntin/mastodon,musashino205/mastodon,dwango/mastodon,masarakki/mastodon,lindwurm/mastodon,im-in-space/mastodon,yukimochi/mastodon,Chronister/mastodon,h-izumi/mastodon,pso2club/mastodon,yukimochi/mastodon,rainyday/mastodon,masto-donte-com-br/mastodon,WitchesTown/mastodon,SerCom-KC/mastodon,musashino205/mastodon,tateisu/mastodon,pso2club/mastodon,Toootim/mastodon,pixiv/mastodon,dunn/mastodon,mhffdq/mastodon,d6rkaiz/mastodon,hyuki0000/mastodon,amazedkoumei/mastodon,riku6460/chikuwagoddon,pinfort/mastodon,codl/mastodon,tri-star/mastodon,pointlessone/mastodon,palon7/mastodon,amazedkoumei/mastodon,imomix/mastodon,Craftodon/Craftodon,imomix/mastodon,rekif/mastodon,pointlessone/mastodon,pso2club/mastodon