Reset as output... So how to unlock Atmega8?
From the datasheet:


  When programming the RSTDISBL Fuse Parallel Programming has to be used to change
  fuses or perform further programming


So, use a parallel programmer.