Fixed Replication Queue Slowdown with Multiple Table Replicas

Fixed a slowdown of replication queue if a table has many replicas.