PIV-68: Avoid multiple accesses to login_state when it might be changed from another thread
PIV-68: Avoid multiple accesses to login_state when it might be changed from another thread

Yubico/yubico-piv-tool,Yubico/yubico-piv-tool,Yubico/yubico-piv-tool