495.The said lien for freight and other charges shall be discharged—
(1) upon the production to the wharfinger or warehouseman of a receipt for the amount claimed as due, and delivery to the wharfinger or warehouseman of a copy thereof or of a release of freight from the shipowner, and
(2) upon the deposit by the owner of the goods with the wharfinger or warehouseman of a sum of money equal in amount to the sum claimed as aforesaid by the shipowner;
but in the latter case the lien shall be discharged without prejudice to any other remedy which the shipowner may have for the recovery of the freight.