Attempt to fix a PassengerWatchdog crash.
The crash is caused by the fact that static global C++ objects are destroyed in
an undefined order. Here we change the code so that the destruction order is
deterministic.