Fix TestMasterReplicationSessionManager caused by replication log iterator refactoring