A Melbourne father who kept a woman as a slave will spend six years behind bars.