The problem isn't in the batchjob, we handle it by limit the size of the transaction, even though it might be nice to be able to force a commit in the javascript for each file imported.
The problem is the action that we might expect a user to perform, delete a space. It also cause lockups. How to work around that? People are going to import zip-files with a lot of documents and then discover that it was the wrong version, or the wrong locations and then delete them. That operation can't stop other users to write to file, right?
We have support on the issue now so I'll report back when we have a solution.