Imawall

Results issues of Imawall

### Steps to reproduce - restart synapse and the error happens after a few seconds ``` 2021-08-04 07:12:41,333 - synapse.storage.txn - 561 - WARNING - _get_stats_for_federation_staging-0 - [TXN OPERROR] {_get_stats_for_federation_staging-39}...

X-Needs-Info