arraylist: abort when allocation fails (#64436)
`arraylist_grow` and `small_arraylist_grow` returned without growing
when `malloc` or `realloc` failed. `arraylist_push` then stored the new
element over the last one, and `jl_gc_add_finalizer_` and
`jl_lock_frame_push` wrote past the end of the buffer. In the GC's
finalizer lists this paired objects with other objects' finalizers, so
finalizers ran on the wrong objects and others never ran; a dropped
remset entry could free live objects.
Use `malloc_s` and `realloc_s`, which abort, as the rest of the runtime
does: most pushes happen inside the collector, where nothing can be
thrown. `arraylist_new` and `small_arraylist_new` returned NULL with
`max` unset, which no caller checked; they abort too.
Fixes #64411
Assisted-by: Claude Code (Opus 5.5)