Fix for deadlock during reindex