Vortex $\gamma$ photon generation via spin-to-orbital angular momentum transfer in nonlinear Compton scattering