Which isn’t a great position to be in but, it’s worth making a few observations:
1) Even if your stocks went into the bankruptcy waterfall, you would have a very preferential place in that waterfall so you are highly likely to get paid in full. If you’re in the waterfall your claim is settled using all remaining assets of the bank, not just your savings. The people who made loans to them with your savings as collateral would be behind you in the waterfall most importantly, so they wouldn’t get dollar 1 until you were 100% paid in full.
2) To actually be worse off here (even notwithstanding #1) you’re really looking at some hypothetical financial meltdown where the banks go completely out of business and yet somehow your retirement savings are still worth something. It might not be a very reassuring thought but that’s not a very likely scenario is it?
3) When a broker dealer goes bust even if your assets are totally in segregated funds you don’t get paid back for frikkin’ ages. A person I know had Lehman as the prime broker for their hedge fund and they didn’t get access to their assets for I want to say a year or so.