FindCUDAToolkit: Fix stub library representation on reconfigure
Since !8649 (merged) we recognize CUDA stub libraries and represent them in a special way. However, the logic only works on the first configuration of a build tree when the libraries are first found. Once the results are cached, we incorrectly revert to the non-stub representation.
Fix this by recognizing stub libraries based on their path instead.
Backport: release