MINOR: ring: re-work ring attach generic API.

Attach is now independent on appctx, which was unused anyway.
2 files changed