gh-155504: Set the interpreter before fallible thread state initialization (#155590)