#241 unique key check should avoid relocking keys if the table is already prelocked by the loader