#218 fix unlock of num_DBs_lock on write_row cleanup path