rpcwallet: use EnsureWalletIsUnlocked() where possible

- replaces pwalletMain->IsLocked() checks, which mostly did not even throw
  an error
- in keypoolrefill init kpSize to 0 as we have the logic to determine max
  kpSize in pwalletMain->TopUpKeyPool() anyway