SQL Error: The total number of locks exceeds the lock table size