Just got this same softlock. If the intention was to make it close permanently behind the player so they can't backtrack from the next room, maybe the first switch shouldn't stay pressed, and the second switch behind the door could be removed so enemies don't step on it