target-linux.exp: Send halt command until it will really halt.