I haven't seen it with pillars happening. I have seen a Dwarf get stuck when building walls. But after a short time they get out of just wall through it instantly.