IOT-1867 Add reference count to OCInit and OCStop