### Tested versions

- First reproducible in: v4.2.dev5.official [e3e2528ba]
- Reproducible in: v4.2.stable.official [46dc27791], v4.2.dev5.official [e3e2528ba], v4.2.dev6.official [57a6813bb]
- Not reproducible in: v4.1.3.stable.official [f06b6836a], v4.2.dev1.official [0c2144da9], v4.2.dev2.official [da81ca62a], v4.2.dev3.official [013e8e3af], v4.2.dev4.official [549fcce5f]

### System information

Godot v4.2.stable - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1080 (NVIDIA; 31.0.15.4617) - Intel(R) Core(TM) i5-8600K CPU @ 3.60GHz (6 Threads)

### Issue description

The `TileSet` `set_occlusion_layer_light_mask` method does not properly update the `TileSet`'s light mask, causing shadows to still be cast by the `TileSet` even when the light mask is changed using the method to a mask different from a given light source (or even an empty light mask). In v4.1.3.stable.official [f06b6836a] this method was working properly.

### Steps to reproduce

- Download and open the `MRPSetOcclusionLayerTileSet_4.2-stable` project folder using one of the reproducible Godot versions noted above.
- Run the project, and press the spacebar key. This will toggle the occlusion layer light mask value of the on-screen `TileMap`'s `TileSet` occlusion light mask between 0 and 1. You will see that the `TileMap` still casts shadows regardless of the new value of its `TileSets`'s occlusion layer light mask.

### Minimal reproduction project (MRP)

[MRPSetOcclusionLayerTileSetBug.zip](https://github.com/godotengine/godot/files/13592741/MRPSetOcclusionLayerTileSetBug.zip)

void _physics_notify_tilemap_change(DirtyFlags p_what);
	void _physics_clear_cell(CellData &r_cell_data);
	void _physics_update_cell(CellData &r_cell_data);
#ifdef DEBUG_ENABLED
	void _physics_draw_cell_debug(const RID &p_canvas_item, const Vector2i &p_quadrant_pos, const CellData &r_cell_data);
#endif 
	bool _navigation_was_cleaned_up = false;
	void _navigation_update();
	void _navigation_clear_cell(CellData &r_cell_data);
	void _navigation_update_cell(CellData &r_cell_data);
#ifdef DEBUG_ENABLED
	void _navigation_draw_cell_debug(const RID &p_canvas_item, const Vector2i &p_quadrant_pos, const CellData &r_cell_data);
#endif 
	bool _scenes_was_cleaned_up = false;
	void _scenes_update();
	void _scenes_clear_cell(CellData &r_cell_data);
	void _scenes_update_cell(CellData &r_cell_data);
#ifdef DEBUG_ENABLED
	void _scenes_draw_cell_debug(const RID &p_canvas_item, const Vector2i &p_quadrant_pos, const CellData &r_cell_data);
#endif 
	
	TileSet::TerrainsPattern _get_best_terrain_pattern_for_constraints(int p_terrain_set, const Vector2i &p_position, const RBSet<TerrainConstraint> &p_constraints, TileSet::TerrainsPattern p_current_pattern);
	RBSet<TerrainConstraint> _get_terrain_constraints_from_added_pattern(const Vector2i &p_position, int p_terrain_set, TileSet::TerrainsPattern p_terrains_pattern) const;
	RBSet<TerrainConstraint> _get_terrain_constraints_from_painted_cells_list(const RBSet<Vector2i> &p_painted, int p_terrain_set, bool p_ignore_empty_terrains) const;
public:
	
	void set_tile_map(TileMap *p_tile_map);
	void set_layer_index_in_tile_map_node(int p_index);
	
	Rect2 get_rect(bool &r_changed) const;