An abusive man who locked his wife in their home, depriving her of freedom and violently beating her even "for yawning", has been jailed.