Press & hold reset. Start the IDE download. When it shows "Compiled xxx of 256xxx bytes", releaese the reset button. Might take a couple of tries to find the right release point.
Pause the sketch by pushing the reset button and keeping it pressed.
Upload new sketch (still holding reset button)
Wait until the Arduino IDE reports the binary sketch size in the debug window and then immediately release the button.
Hopefully your sketch will be uploaded before the board locks up.
You might have to try several times to get the timing right.
Edit: CrossRoads beat me to it. We're talking about the same thing.