A survey by Moody’s found that a relatively small share of banks have issued credit-risk transfer deals in recent years.