dm table: rework reference counting fix