This is exactly how Goldman managed to be so successful in the subprime crisis. When they decided to unload their holdings, they were sold to their clients. There is a strong conflict of interest at Goldman between shareholders and clients.
My understanding is that Goldman can do two things to make money here: 1. charge fees on transactions and 2. decide when and how to sell/buy shares for themselves.
Whether the clients should be protected by the SEC is another matter.