An analysis of 22 countries found that the NHS was the second worst performer when it comes to deaths from conditions where swift care should avoid a fatal outcome.