Force the caching of file / dir lookup failures (ROOT-6865).

(cherry picked from commit a55537af73950550bd38ee9be1c332f3b7ebafff)