Crashes with exit code `-1073741571` when using `orc` or `arc` but it works with `refc` in a single list implementation test
# The test source
```nim
type
    NodeObj[T] = object
        data: T
        next: Node[T]
        
    Node[T] = ref NodeObj[T]
    
    SingleListObj*[T] = object
        head: Node[T]
        tail: Node[T]
        count: uint
        
    SingleList*[T] = ref SingleListObj[T]

proc newSingleList*[T](): SingleList[T] =
    result = SingleList[T]()
    
proc append*[T](list: var SingleList[T], data: T) =
    let item = Node[T](data: data)
    if list.tail == nil:
        list.tail = item
        list.head = item
    else:
        list.tail.next = item
        list.tail = item
    list.count.inc()
    
proc size*[T](list: SingleList[T]): uint = list.count

proc main() =
    for i in 0 .. 1000 - 1:
        var list = newSingleList[int]()
        for j in 0 .. 10000000 - 1:
            list.append(j)
        let n = list.count
        assert n == 10000000
        echo $i & ": list size " & $n

main()
```

### Nim Version

>nim -v
Nim Compiler Version 1.6.20 [Windows: amd64]
Compiled at 2024-04-07
Copyright (c) 2006-2023 by Andreas Rumpf

active boot switches: -d:release

>%nim20_home%\bin\nim -v
Nim Compiler Version 2.0.8 [Windows: amd64]
Compiled at 2024-07-03
Copyright (c) 2006-2023 by Andreas Rumpf

active boot switches: -d:release

### Current Output

```text
>%nim20_home%\bin\nim c -d:release --mm:orc --stackTrace --lineTrace mylists.nim
Hint: used config file '..\nim-2.0.8\config\nim.cfg' [Conf]
Hint: used config file '..\nim-2.0.8\config\config.nims' [Conf]
........................................................................
CC: ../../../../Programs/nim-2.0.8/lib/system/exceptions.nim
CC: ../../../../Programs/nim-2.0.8/lib/std/private/digitsutils.nim
CC: ../../../../Programs/nim-2.0.8/lib/std/assertions.nim
CC: ../../../../Programs/nim-2.0.8/lib/system/dollars.nim
CC: ../../../../Programs/nim-2.0.8/lib/std/typedthreads.nim
CC: ../../../../Programs/nim-2.0.8/lib/std/exitprocs.nim
CC: ../../../../Programs/nim-2.0.8/lib/std/syncio.nim
CC: ../../../../Programs/nim-2.0.8/lib/system.nim
CC: mylists.nim
Hint:  [Link]
Hint: mm: orc; threads: on; opt: speed; options: -d:release
27994 lines; 4.311s; 37.477MiB peakmem; proj: ..\mylists.nim; out: ..\mylists.exe [SuccessX]

>mylists
0: list size 10000000
# Crash here!
>echo %errorlevel%
-1073741571
```


### Expected Output

```text
>mylists
0: list size 10000000
1: list size 10000000
2: list size 10000000
3: list size 10000000
4: list size 10000000
5: list size 10000000
6: list size 10000000
7: list size 10000000
...
```


### Known Workarounds

_No response_

### Additional Information

_No response_