store: move logic to check for invalid entry in fncache to own function...
store: move logic to check for invalid entry in fncache to own function
This helps separate the original reading logic from the one which finds for an
invalid entry.
Differential Revision:
https://phab.mercurial-scm.org/D6030