restore header hooks to unused state upon container destruction

Feature request: https://svn.boost.org/trac/boost/ticket/9949