National Library of Ireland director Dr Audrey Whitty on ancestral connections, Samuel Beckett’s ‘fail better’ advice and the appeal of getting older