Fix get_primaries_preflist for partitions as hashkey