fix TestAllowanceSpending failing on AppVeyor
Created by: ChrisSchinnerl
As the name suggests I'm trying to fix the TestAllowanceSpending
test. It seems that the maintenance thread doesn't always finish in time. Introducing a retry
should fix that.