HDRP Lit shader properties not updating when set by code

In the editor, while streaming GLB models and setting the double-sided property of the HDRP Lit shader programmatically (_DOUBLESIDED_ON), the changes are not taking effect.

I´ve tried using the local material.EnableKeyword(“_DOUBLESIDED_ON”) and while the EnableKeyword() is working for NormalMaps and MaskMaps, it is not working for the Double-Sided property. The result is always the same. No changes to the property are apparent on the respective game object´s meshes in the scene or game views until I select the said game objects and click to open their material to view the shader in the inspector, at which time, the changes magically take effect as if the shader gets recompiled at that time.

EDIT: I have also tried creating a material block and setting the said property via the material block and finally using SetMaterialBlock() on the respective MeshRenderers, but still no dice.

EDIT | UNITY VERSIONS: 2020.3.25f1 LTS, 2020.3.29f1 LTS

The cause of this happened to be that enabling double sided did not automatically set the cull mode to none. Since the cull mode default was “Back”, it stayed that way until I selected the material in the inspector. So, the solution was to set the cull mode by code as well material.SetFloat("_CullMode", 0f);