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

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