This is to track the regression introduced in master, which needs fixing for 0.14. See #9240, #9371, etc.
{
        if (!coinControl.IsSelected(txin.prevout))
        {
            tx.vin.push_back(txin);
            if (lockUnspents)
            {
              LOCK2(cs_main, cs_wallet);
              LockCoin(txin.prevout);
            }
        }
    }
    
    if (keepReserveKey)
        reservekey.KeepKey();
    return true;
}
bool CWallet::CreateTransaction(const vector<CRecipient>& vecSend, CWalletTx& wtxNew, CReserveKey& reservekey, CAmount& nFeeRet,