Convert registry.go to use a for-select loop instead of locks.

see issue #124
Because it's written-to, but never read. (The compiler, smartly, doesn't consider that scenario as "use".) It's OK to leave it as-is, for now. We can revisit it and add the functionality in another PR.