When a party entitled to a share of the property, or an encumbrancer entitled to have his or her lien paid out of the sale, becomes a purchaser, the referees may take his or her receipt for so much of the proceeds of the sale as belong to him or her.