you can't lock yourself inside. i made a seperate exit with a hidden button at the end of the long corridor. also you need to find another hidden button inside the long corridor to progress. just look at the wall textures while walking through, it is clearly marked ;-)