Close transaction before updating progress indicator

Should fix #230
Remove Zotero.wait() from Zotero.Collection.addItems

Since this is inside a transaction, it could potentially cause more
state check errors
Don't delete collection on partial import