This error happened in a push in #24897
I pushed the code again git commit --amend and didn't happen.
It seems to be intermittent.
https://cirrus-ci.com/task/6073485217759232?logs=ci#L3237
2022-09-15T14:46:12.481366Z (mocktime: 2020-08-31T15:34:12Z) [coinstatsindex] [util/system.h:50] [error] ERROR: Commit: Failed to commit latest coinstatsindex state
...
SUMMARY: ThreadSanitizer: data race on vptr (ctor/dtor vs virtual call) src/index/base.cpp:69:1 in BaseIndex::~BaseIndex()
