Turns a sync.key from sync protocol 3 or older into epoch 0 of this
device’s identity key, wrapped to its device key, mints epoch 1 and
writes this device’s self-signed row. The file is deleted only once the
wrapped key is on disk and opens again. Safe to rerun after a crash at
any step.
On the joining device: takes the row the pairing device signed for it,
the device list it vouched for over the channel, the epochs wrapped for
it and its recovery recipients, adding them to the recipients this
device trusted under an identity it leaves. Everything is checked before
the first write, so a refused admission leaves this device as it was.
Safe to rerun with the same admission.