Repeatable read and deadlocks in SQL Server