optimize adding torrents with thousands of files

Adding a torrent with ~9200 files in one folder was painfully slow. Most of this time was spent constructing the TreeStore.

Before: 1m20s 
After: 3s

Probably fixes this issue too, not sure if there's a bug for it: http://forum.deluge-torrent.org/viewtopic.php?f=7&t=48743