Cache successful mapping of PCH to filesystem paths (ROOT-6865).

(cherry picked from commit 533f8f37666f24d8840cb3db4c150ef8e5232691)