message: [Staking] Exit CreateCoinStake loop if wallet locked/shutdown
  If the wallet gets locked or a shutdown is requested in the middle of
  the stakeinput loop, there is no sense in continuing.
diff: @@ -2963,6 +2963,10 @@ bool CWallet::CreateCoinStake(const CKeyStore& keystore, unsigned int nBits, int
  int nAttempts = 0;
  bool fKernelFound = false;
  for (std::unique_ptr<CStakeInput>& stakeInput : listInputs) {
  + // Make sure the wallet is unlocked and shutdown hasn't been requested
  + if (IsLocked() || ShutdownRequested())
  + return false;
  +
  //make sure that enough time has elapsed between
  CBlockIndex* pindex = stakeInput->GetIndexFrom();
  if (!pindex || pindex->nHeight < 1) {
  