called with (id, realm, origin); origin is
{ restored, replicated } — restored for a realm read back from the
store or learnt from another process, replicated for the second kind
only, whose rows are on their way (ldap_server.js's builder)
Registers a builder that runs when a realm is created.