Leveraging Equivariances and Symmetries in the Control Barrier Function Synthesis