Follow-up to #33671
This PR refactors CWallet::IsSpent to reuse the logic already implemented in CWallet::HowSpent.
Instead of manually iterating over mapTxSpends and checking transaction states, IsSpent now simply returns:
return HowSpent(outpoint) != SpendType::UNSPENT;
Also move CWallet::IsSpent from wallet.cpp to wallet.h as a small inline helper, since it is a one-line wrapper around HowSpent.