When a vessel is sold by order of a district court in a civil action in rem brought to enforce a preferred mortgage lien or a maritime lien, any claim in the vessel existing on the date of sale is terminated, including a possessory common law lien of which a person is deprived under
section 31325(e)(2) of this title, and the vessel is sold free of all those claims.