Socket's implementation of ref_state_set to return empty sets instead of NULL