HBO's 'Barry' gets renewed for a third season