add Pinmatrix functionality

TrezorPass crashes when TREZOR has PIN protection enabled. This patch fixes the problem.