get_filename_component: Cache the actual case of path components

get_filename_component(ABSOLUTE|REALPATH) queried the disk for the
actual case of every path component on every call.  Remember the actual
case of components found to exist until files may have been removed or
renamed, as for source file lookups.

5 files changed