A legal loophole that allowed alleged murderers to argue they killed someone in self-defence while affected by self-induced intoxication will soon be closed in South Australia.