Pump hazard pointer queue in unregister_thread while thread is still alive. (#4183)