Linear confinement of a scalar particle in a Gödel-type spacetime