Whenever any such embezzlement, loss, or destruction is suffered by several freighters or owners of goods, wares, merchandise, or any property whatever, on the same voyage, and the whole value of the vessel, and her freight for the voyage, is not sufficient to make compensation to each of them, they shall receive compensation from the owner of the vessel in proportion to their respective losses; and for that purpose the freighters and owners of the property, and the owner of the vessel, or any of them, may take the appropriate proceedings in any court, for the purpose of apportioning the sum for which the owner of the vessel may be liable among the parties entitled thereto.