Stop installing a global __WARN__ handler at BEGIN time

Installing a global __WARN__ handler when the package is loaded causes
extremely surprising action at a distance, particularly as no attempt is
made to call the previous __WARN__ handler, if it existed.

Limit the scope of the warn handler to the single block which might
cause the warnings.