To unlock this, you need 20 levels to show 0 deaths after you've completed them. I wrongly assumed that I could cautiously complete a level with no deaths, and then replay for gold even if I died. This DOES NOT work. A better run with a death will replace a worse run with no death, and you'll lose a no-death run. I suggest accumulating 20 no-death runs before trying to improve your times.