Support scrap master in ShardExternallyReparented.