gh-99370: Prefer LIBDIR from sysconfig when locating libpython for test (GH-99523)

(cherry picked from commit 7c57857340befcb90394bc347c904ca62049b684)

Co-authored-by: Steve Dower <steve.dower@python.org>
1 file changed