Implement the solution [described in the MSC](https://github.com/matrix-org/matrix-doc/blob/9c90cc1db3391e072000f886aabed5a24f16ff7b/proposals/1849-aggregations.md#handling-limited-gappy-syncs) for dealing with stale aggregations after a gappy sync.