fixes insert_lock.sql path.