My kitchen cupboards have long been cleared of junk food, yet the challenge of lockdown could so easily have posed a threat to my willpower.