fix handling of OPAL_DSTORE_LOCALITY and ref cnt