Parent: #415 Depends on: #420 GC parent: #144 Roadmap: #134
Record allocation ownership outside zig-gc’s compact stable-ID header and use it for every realm-sensitive collector callback.
Acceptance:
- Record a stable realm ID for each owned backing slot without per-cell heap allocation or header growth.
- Preserve ownership across batch publication, sweep/unpublication, slot reuse, and relocation commit/rollback.
- Route allocation recovery, weak pruning/cleanup, finalization counters, side-storage release, and deferred embedder callbacks to the owning live/retiring realm.
- Reject or fail closed when an allocation has no active registered realm.
- Add multi-realm weak, external-owner, relocation, slot-reuse, and TSan evidence.