You just need to link in boehm c implementation and use that as the allocator just like chooosing any other allocator in zig. That's how easy it is.
Or if you're suggesting a GC to solve the memory unsafety, a GC only solves leaks and doesn't do anything for use-after-free or simultaneous unexpected mutations.