Check for keyid conflicts between new keys (9.16)
When the keymgr needs to create new keys, it is possible it needs to create multiple keys. The keymgr checks for keyid conflicts with already existing keys, but it should also check against that it just created.
I left the fixup commit for review purposes.
Closes #2628 (closed)
Edited by Matthijs Mekking