gh-155997: Fix list_all() if an interpreter is destroyed during the call (GH-155998)