In an incredible reversal, investors pulled a record $12.2 billion out of municipal-bond mutual funds.