Partly synchronize with DirListingOptimization branch, make sure that no callback data contains pointer to DirEntry.