rpcwallet: use EnsureWalletIsUnlocked() where possible
rpcwallet: use EnsureWalletIsUnlocked() where possible

- replaces a pwalletMain->IsLocked() check
- in keypoolrefill init kpSize to 0 as we have the logic to determine max
  kpSize in pwalletMain->TopUpKeyPool() anyway

Crowndev/crowncoin,Crowndev/crowncoin,domob1812/crowncoin,syscoin/syscoin,Crowndev/crowncoin,Infernoman/crowncoin,Crowndev/crowncoin,syscoin/syscoin,syscoin/syscoin,Infernoman/crowncoin,domob1812/crowncoin,syscoin/syscoin,domob1812/crowncoin,Infernoman/crowncoin,Infernoman/crowncoin,domob1812/crowncoin,domob1812/crowncoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,Crowndev/crowncoin,Infernoman/crowncoin,domob1812/crowncoin,syscoin/syscoin,Infernoman/crowncoin,Crowndev/crowncoin