A near-death experience changes the outlook of the woman about to become the first female Chief Justice of the Supreme Court.