feat(directory): add cancellation-aware operations
Merged
RE
2mo ago+183+183+012345678901234567890123456789-21-21-01234567890123456789
Grain directory callers cannot currently propagate cancellation into directory implementations, so activation shutdown can leave registration work running and stale registrations are replaced non-atomically.
Add backward-compatible cancellation overloads with default cancelable waits, implement linked shutdown/caller cancellation in the distributed directory, propagate activation cancellation through the locator stack, and conditionally replace stale registrations in one register operation.