#218 fix incorrect use of num_DBs_lock