[Wallet] Replace OrderedTxItems(..) with in-memory map

I was wondering why adding 18000 transactions to the wallet takes ages.
One of the reasons is CWallet::OrderedTxItems(..).
So maintain the map in-memory instead of generating it all the time.
This pull should not change any functionality.