CWallet::CreateTransaction
goes through several iterations to select the best coins and fee to fulfil the request. In each iteration the set of available coins is computed.
This PR moves the computation of available coins to the begin and reuses it in each iteration.