It's tagged as "status: locked" but that's not an official tag, so it's unlikely that any software or map would take any notice of it. I've added the correct tag which is access=no but although it may help those planning a walking route, it will not change what appears on the map. Better would be to add that tag to the path too, which does change the map appearance for the path. But unless there are gates at the top or bottom end of the path too it would not be correct to do that.