Minor fix for lock table creation