Fix sporadic ShardManagerTest failures