On the infinitesimal Gauge Symmetries of closed forms