### 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)

source = *tile_set->get_source(c.source_id);
		if (source->has_tile(c.get_atlas_coords()) && source->has_alternative_tile(c.get_atlas_coords(), c.alternative_tile)) {
			TileSetAtlasSource *atlas_source = Object::cast_to<TileSetAtlasSource>(source);
			if (atlas_source) {
				Vector2i grid_size = atlas_source->get_atlas_grid_size();
				if (!atlas_source->get_runtime_texture().is_valid() || c.get_atlas_coords().x >= grid_size.x || c.get_atlas_coords().y >= grid_size.y) {
					
					Array to_hash;
					to_hash.push_back(c.source_id);
					to_hash.push_back(c.get_atlas_coords());
					to_hash.push_back(c.alternative_tile);
					uint32_t hash = RandomPCG(to_hash.hash()).rand();
					Color color;
					color = color.from_hsv(
							(float)((hash >> 24) & 0xFF) / 256.0,
							Math::lerp(0.5, 1.0, (float)((hash >> 16) & 0xFF) / 256.0),
							Math::lerp(0.5, 1.0, (float)((hash >> 8) & 0xFF) / 256.0),
							0.8);
					
					Transform2D cell_to_quadrant;
					cell_to_quadrant.set_origin(tile_map_node->map_to_local(r_cell_data.coords) - p_quadrant_pos);
					rs->canvas_item_add_set_transform(p_canvas_item, cell_to_quadrant);
					rs->canvas_item_add_circle(p_canvas_item, Vector2(), MIN(tile_set->get_tile_size().x, tile_set->get_tile_size().y) / 4.0, color);
				}
			}
		}
	}
}
#endif 
void TileMapLayer::_physics_update() {