FindPython: ensure Stable ABI is correctly handled

Fixes: #24610
3 files changed