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

see issue #124
Er :) The comment wasn't to suggest it should be deleted, but rather that it should be wired into agent startup correctly :)