Fix CMAKE_PARENT_LIST_FILE after return from include() or find_package()

Fix the implementation, clarify the documentation, and add tests.

Fixes: #25026
Co-authored-by: Brad King <brad.king@kitware.com>
7 files changed