The fact that this shall be protected against being called while there are other threads ends up meaning that it *is* a good place, after all, for the PRIVKEY/PUBKEY tidy-up; since wherever that ends up, it must be so protected.