Lazy loading fixes (#2362)
Lazy loading fixes (#2362)

* Return some more usefully wrapped errors when doing sync

* Remove unnecessary error check

* Couple of guards around `sql.ErrNoRows`

* Nolint
matrix-org/dendrite,matrix-org/dendrite,matrix-org/dendrite,matrix-org/dendrite