Fix DLL detach crash.

Singleton does not use std::unique_ptr.