Fix building of registration entry in build_peer when using callbackextension