cross-process, crash-safe named reference count
Holding an instance signals "I am interested in the named resource" to every other process doing the same under the same name. Each holder keeps a shared (LOCK_SH) advisory lock open on a small marker file; the kernel releases a process' flock()s when its last file descriptor to the file closes, a crash included, so the count never desyncs. The marker file is never unlinked - same as the named semaphores in shared::event - a later reference under the same name reopens it; flock()s are per open file description, not per path.
release() runs its last where this was the last holder, under the exclusive lock that proved it: a holder registering meanwhile waits for it, so last (dx::shared::memory's shm_unlink()) never removes what a newcomer created - and waits on nothing itself.
Holding an instance signals "I am interested in the named resource" to every other process doing the same under the same name. The underlying named mutex is kept alive by Windows for as long as any process holds an open handle to it, and Windows closes all of a process' handles on termination, a crash included, so the count never desyncs. dx::shared::memory (Windows) does not use this class: the file mapping object is itself kept alive exactly as long as any process holds a handle to it, so nothing is left to remove after the last one.
release() runs its last where this was the last holder (e.g. dx::service::client::_device erasing an application's non-persistent settings).