The court in its discretion may require all or any of the parties, before they receive the money arising from any sale authorized in sections to , to give satisfactory security to refund such money with interest, in case it afterward appears that such parties were not entitled thereto.