Title: #5746: p11_child: do_card partially fix loop exit condition (redo of #5705)
@sumit-bose I don't think a simple patch can fix this. I think some re-factoring of
`do_card()` and `wait_for_card()` is what is really needed here, in order to make any
progress towards supporting multiple PKCS#11 slots or tokens.
See the full comment at https://github.com/SSSD/sssd/pull/5746#issuecomment-905160276