card-piv: Unlock card with context-specific login
card-piv: Unlock card with context-specific login

When performing context specific login with PIV card,
PIV driver does one extra sc_lock() call and expects
sc_unlock() to be called by following cryptographic operation.
If an error occurs in between, sc_disconnect_card was called,
but not release the card due to remaining locks.

Thank OSS-Fuzz
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=47149

dengert/OpenSC,OpenSC/OpenSC,philipWendland/OpenSC,LudovicRousseau/OpenSC,mouse07410/OpenSC,mouse07410/OpenSC,metsma/OpenSC,philipWendland/OpenSC,mouse07410/OpenSC,dengert/OpenSC,philipWendland/OpenSC,OpenSC/OpenSC,metsma/OpenSC,metsma/OpenSC,dengert/OpenSC,LudovicRousseau/OpenSC,OpenSC/OpenSC,LudovicRousseau/OpenSC