Safety means against water hammers or against the penetration of water