fix a few write barrier issues (#62687)
`jl_genericmemory_copyto` had the write barrier after instead of before
which is invalid for concurrent GC. Also, a number of manual `jl_gc_wb`
were added which should have just been `jl_gc_write[_atomic]`
found by claude.
---------
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>