Fix refcounting bug in func_excepthook().

Found with python compiled with --with-pydebug.