The idea that the US Mint has a legal obligation to mint and issue bullion coins in quantities sufficient to meet public demand is one that I have seen mentioned every time the US Mint puts its bullion coins on allocation. While originally true, it is no longer the case.
Read more here
FYI, you'll also like Sec. 5116 authorising the Secretary of the Treasury to sell gold.