Use-after-free in pkcs15_pubkey_release()

While tracking down nasty segfaults that happened when closing the PKCS #11 module, I found a use-after-free bug; the fix seems to work for me!