Joe Manganiello believes his sobriety provided a foundational framework to face a later life-or-death situation