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. 
CDataStream ssTx(SER_NETWORK, PROTOCOL_VERSION);
    ssTx << m_transaction_data;
    QString selected_filter;
    QString filename_suggestion = "";
    bool first = true;
    for (const CTxOut& out : m_transaction_data.tx->vout) {
        if (!first) {
            filename_suggestion.append("-");
        }
        CTxDestination address;
        ExtractDestination(out.scriptPubKey, address);
        QString amount = BitcoinUnits::format(m_client_model->getOptionsModel()->getDisplayUnit(), out.nValue);
        QString address_str = QString::fromStdString(EncodeDestination(address));
        filename_suggestion.append(address_str + "-" + amount);
        first = false;
    }
    filename_suggestion.append(".psbt");
    QString filename = GUIUtil::getSaveFileName(this,
        tr("Save Transaction Data"), filename_suggestion,
        
        tr("Partially Signed Transaction (Binary)") + QLatin1String(" (*.psbt)"), &selected_filter);
    if (filename.isEmpty()) {
        return;
    }
    std::ofstream out(filename.toLocal8Bit().data(), std::ofstream::out | std::ofstream::binary);
    out << ssTx.str();
    out.close();
    showStatus(tr("PSBT saved to disk."), StatusLevel::INFO);
}
void PSBTOperationsDialog::updateTransactionDisplay() {