I'm assuming you are one block away from the lock when you try to go south.At that point I would suggest going 1 block right, 2 down, then 1 left. I've just played through the game again myself using the image I uploaded and was able to navigate the maze myself.