dname: reduce dname_t size via direct implementation of reference counting

Change-Id: I8f8932c6e610a5b24cd33c2329d7959c2d0aef7b