Turning it in again after being locked in the room let me out. But reloading the save got the same situation. It might have something to do with loading a save from before the turn in was possible?