Check for keyid conflicts between new keys (9.16)

Merged Matthijs Mekking requested to merge 2628-kasp-create-multiple-key-keyid-conflict into main

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

Merge request reports