I redid the experiment with doors of the same quality but different materials and then with hatches.
Doors first.
That was the setup. I used the same trolls as previously, but added one corridor on top, so could check the same doors (steel) with different number of trolls. The new troll, topmost one, is muscular. I also installed two columns of door. I named them 1st column a 2nd column, while rows will be numbered from top. Doors of 1st column are closer to the trolls. Both doors in any chosen row (corridor) are identical. This is to delay trolls but also to check new ideas. Materials are as follows: 1 and 2 row - steel, 3 - iron, 4 - silver, 5 - copper, 6 -rock (gabbro) and 7 - wood. All doors are of superior quality:
Now I started by making sure all doors were unlocked. That was the result:
All trolls ran to the doors and got stuck there. I waited one week and terminated. Doors were undamaged.
Next I repeated and locked some doors, one in every row. Upper three rows had 1st column passable and 2nd column forbidden (locked). Bottom four rows had 1st column forbidden and 2nd column passable. Trolls started in a more promising way:
I was observing damage being done to the doors (with "t"). Row 2 doors (steel), with three trolls, were damaged fastest, while row 7 door (wooden) were damaged least.
Finally trolls breached one of doors, row 2:
At this moment wooden door was xdoorx while all other were XdoorX. Iron door was being damaged fastest of all these remaining. Wooden door was damaged least, with copper following. Iron door was breached next, after some time:
After some time gabbro door was destroyed, then steel door with one troll , then silver, then copper:
Note that trolls in upper three rows were unstuck and actively destroying doors, while trolls in four bottom rows were stuck and not destroying. Upper three rows had these doors forbidden.
Then I decided to unlock one of doors in 2nd column, iron one. That smart troll has immediately moved next to them and got stuck. And final results:
I left it for one week and then terminated.
Silver Iron door was lightly mangled before I unlocked them. But it remained that way during the next 6 way, when the troll assigned to it was stuck.
After seeing this I decided to repeat it with different combinations of unlock and lock. I won't give screenshots for that, would be too boring.
What was revealed? It is enough to lock one door in a row to make sure trolls won't get stuck on the first door. It's not important which one would be unlocked. However, trolls are stuck on a second door if that one was unlocked. Now, it is not enough to unlock all doors in a row to have troll stuck. If troll of row above is not stuckable, then troll from row below sometimes (more often than not) don't stuck. Probably he can path to the door above him, and is not as resigned as trolls who cannot path. Which means that a specific surroundings and pathing decides whether the troll will get stuck or not. So all of the above is true for this particular setup. It may work not reliably in different setup. We all know the game is performing certain calculations starting from top-left corner, so there may be differences when trolls go from right to left for instance. Actually what was working reliably is allowing to pass for these trolls, getting them stuck is harder.
Door material seem to be not important. Particular troll may be important, because again the last one was the average joe on bottom row. Even skinny troll was better. Number of trolls seem to be important, because the time difference between breach of first door and second door was much more pronounced that time differences between each of following successive breaches.
About
hatches. I must recant my statement about locked hatch destroying. I made experiments with locked hatches, unlocked hatches and mechanised hatches. Trolls under unlocked hatches were destroying them, though it was taking more time than destroying a door (up to three-five days). Trolls under locked or mechanised hatches were not even stuck, they were not interested in them. They were hanging around, moving and stopping randomly. Unlocking a hatch was causing trolls to congregate under it, locking again was causing them to scatter around. I also made an experiment with an artifact hatch. That hatch was not destroyed in 14 days (unlocked of course). Troll was trying, but couldn't. After that time I had to terminate the experiment, but the hatch was unscathed. Normal hatches may be destroyed after 3 days, but the damage to them is visible usually on day 0, and always on day 1. So artifact hatches are much better. Trolls are kind of stuck below, because they truly believe they will destroy them.
Note about tileset: yes, it's Ironhand's. I have changed color scheme of the game (taking one from wiki) so it may look different. Colors may be off. I did it because red and highlighted red look too similar to each other on my monitor.