Per the comment just above, _refs is always accessed by something holding _flow_map_lock ('cause when you decrement it you may need to delete it from the flow table, and when you increment it you've just added one) - so it doesn't need the overhead of atomicity as well. But we don't have that guarantee for dialog counts.