A safety feature once seen as annoying became a lifesaving barrier when a child tried inserting a cable into an outlet at home.