On the generalization of the Riesz–Zygmund theorem for the ergodic Hilbert transform