fix #11182: avoid Cartesian product of REINDEX eventlog entries

A good test is to move images like `test_images_good/bruker/wis/RA_060110.051/` and see that they go very much faster than before, but also that the resulting `REINDEX` entries in `eventlog` include all the same entities that were there before.