Block until thread exits in manager dtors