The similarity of a J-self-adjoint Sturm-Liouville operator with finite-gap potential to a self-adjoint operator