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

see issue #124
This was refusing to compile because, even though `acceptUpdates = b` was uncommented below in the for-select loop, the compiler said that it was an unused variable.