Homogenization of metrics in oscillating manifolds