Safety valve for lead-acid batteries