1585. Where the deposit of a sum of money or of securities is declared valid by the court, the debtor may not withdraw them except with the consent of the creditor.
The withdrawal may not be made, however, if it would impair the rights of third persons or prevent the release of the co-debtors or the sureties of the debtor.