#218 fix double lock of num_DBs_lock in interaction between start_bulk_insert and update_row