OPENDNSSEC-575: libhsm: Optimize storage in HSM by deleting the public k...

...ey directly if SkipPublicKey is used.

This is a copy of the other pull request.