Multiple mating and kin recognition by self-inspection