refactor: fix code duplication in keyshare pin checking and pin changing
refactor: fix code duplication in keyshare pin checking and pin changing

This also solves a previous inconsistency where the server would write failed
pin checks to the user log in case of an ordinary pin check, but not on pin
changing.

credentials/irmago