On the gauge symmetries of Maxwell-like higher-spin Lagrangians