Only wait half a second before the next folder sync is started.
Optimize restoring of the remote tree from database.

If the etag of a directory hasn't changed, the content for the csync
tree can be restored from database. The code doing that is now optimized
so that this does not take so long any more.
Removed unused function.