bpo-31047: Fix ntpath.abspath for invalid paths (GH-8544)

(cherry picked from commit d2e902e4fb304f27e4a72356efbc1fc26be3935d)

Co-authored-by: Franz Wöllert <franz.woellert@gmail.com>
3 files changed