Windows: Test NameArrayReferenceCount before deletion