drwrap fails to clear its flags on re-attach
For statically-linked drwrap, on re-attach its global_flags is not reset, causing problems if a test checks the return value of drwrap_set_global_flags (or wants to use different flags).
Hit on the drcachesim burst tests with #3995.