Special role of the first Matsubara frequency for superconductivity near a quantum critical point: Nonlinear gap equation below Tc and spectral properties in real frequencies