I encountered a situation where the door was closed with the lever down, whether by accident or not, when I died in the scene of escaping from the ZURK in The Sewers.
I then tried dying several times in the same place in different game data chapters and the bug did not occur.