Bug 704506 - Connection loss to mysql after resume from hibernation

Add a 2^n ms backoff for connection retries so the server has time
to restart after hibernation.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23452 57a11ea4-9604-0410-9ed3-97b8803252fd