redirect flatten index to go through ContainerFD optimize hook
rather than directly into the containerfs.