Not being able to fortify across obstacles like that is IMO acceptable. Just work around it.
For this to be meaningful, we’d expect to enclose a many-overmap-tile area. That leaves plenty of room for some sections to be made of different kinds of walls.
I look forward to your implementation, I don’t see a simple solution to this problem.