When the share of an infant is sold, that share of the proceeds may be paid by the referees making the sale to the infant’s general guardian, or to the special guardian appointed for the infant in the action, if the guardian has given the security required by law.