gh-144727: Add test for circular lazy import crash (#144727) (#144838) Add a regression test ensuring that circular lazy imports raise a proper error (ImportCycleError) instead of crashing with a segfault. The crash was fixed in gh-144733 but no test was added at the time.