Properly implement DllCanUnloadNow ref counting.