Bitcoin Core v0.21.1

`bitcoin-cli walletprocesspsbt` does not trigger a `wallet locked please enter passphrase` warning when using a wallet which holds private keys. To be clear I am experiencing this behavior when using the `default` wallet created by core.

The expected behavior would be to remind the user they are dealing with an encrypted wallet, since `walletprocesspsbt` attempts to access private keys to sign the psbt. It would be useful if a warning were present in the rpc response to remind the user they are dealing with an encrypted wallet. 
CWallet* const pwallet = wallet.get();
    int64_t nSleepTime;
    int64_t relock_time;
    
    LOCK(pwallet->m_unlock_mutex);
    {
        LOCK(pwallet->cs_wallet);
        if (!pwallet->IsCrypted()) {
            throw JSONRPCError(RPC_WALLET_WRONG_ENC_STATE, "Error: running with an unencrypted wallet, but walletpassphrase was called.");
        }
        
        SecureString strWalletPass;
        strWalletPass.reserve(100);
        
        
        strWalletPass = request.params[0].get_str().c_str();
        
        nSleepTime = request.params[1].get_int64();
        
        if (nSleepTime < 0) {
            throw JSONRPCError(RPC_INVALID_PARAMETER, "Timeout cannot be negative.");
        }
        
        constexpr int64_t MAX_SLEEP_TIME = 100000000; 
        if (nSleepTime > MAX_SLEEP_TIME) {
            nSleepTime = MAX_SLEEP_TIME;
        }
        if (strWalletPass.empty()) {
            throw JSONRPCError(RPC_INVALID_PARAMETER, "passphrase can not be empty");
        }