Core/ConfigTemplates/Solr.RebuildCores.IndexNode.xml

<index id="{{indexname}}">
    <param desc="core" patch:instead="param[@desc='core']">{{corename}}</param>
    <param desc="rebuildcore" patch:instead="param[@desc='rebuildcore']">{{corename}}_sec</param>
</index>