Hi,
likely this is a logical error, Unity doesn't lock anything for GameObjects properties. it's always something the developer has total control over, so it may be that another action is forcing this gameobject to be true and you forgot it or simply did a bad copy paste of action, it happens a lot so triple check your logic.
Bye,
Jean