Doubling bifurcation of a closed invariant curve in 3D maps