That assumes they don't try a "vigorous application" of said rubber hose decryption if they don't believe you.
Or they go as far as the UK where they just throw you in jail if you forgot your password...
Or they just are like, no problem, we'll just seize anything else you have to make up for the "lost" wallet.