moved the txn commit out of the write lock for bulk load #313