This line is not required to trigger race condition.

Relevant race condition is between recursiveReindexObject and
unindexObject (triggered by setId).
Tolerate indexing an object whose path is "deleted" in the catalog.