Error in locking table.