Make getPrivKey return nil if the private key is not found

It still returns an error if the addr manager is locked or something like
that.

Also replaces some panics with proper errors.
Add an errorCodeStrings entry for ErrWithdrawalProcessing
Fix a comment