D. Whenever the Department or the Director is or may be named as a party in any proceeding instituted by or on behalf of one or more persons who claim ownership of a winning lottery ticket, prize, share or portion thereof for the purpose of determining the ownership or right to such ticket, prize, share or portion thereof, the Director may voluntarily pay or tender the prize, share or portion thereof into the circuit court where the action is filed, or may be ordered to do so by the court, and shall thereupon be discharged from all liability as between the claimants of such ticket, prize, share or portion thereof without regard to whether such payment was made voluntarily or pursuant to a court order. Nothing in this section shall be deemed to constitute a waiver of the sovereign immunity of the Commonwealth or to authorize any attachment, garnishment, or lien against the prize, share or portion thereof paid into the court except as permitted by subsection C.