util/disk_cache: add fallback for disk_cache_get_function_identifier