Constraints on the origin and maintenance of genetic kin recognition