Fix batch moves/deletes

r? @asutherland: This fixes an issue with batch move operations caused by us trying to access the target folder multiple times, thus deadlocking us. See below for comments on specific weird bits in the code.

https://bugzilla.mozilla.org/show_bug.cgi?id=846970