For mutual fund investors, the final months of a big up year for the stock market can carry a hidden barb; capital gains.