[PATCH openEuler-1.0-LTS 03/65] cacheinfo: Provide a helper to find a cacheinfo leaf