Guard preload hooks against recursive invocation, e.g. index->mmap->dlsym->calloc->index.