I went a bit mad on Samurai and Ninja stuff a few years ago, learned a fair bit I'll probably never need, but I'd say it is possble that some people might have tried to use a Katana for such a thing, they wouldn't have been Samurai. A Samurai wouldn't have done it because of the significance of the blade. To a non-Samurai, the sword would mean less, so who knows, maybe it was tried.
That said, I think Graham_S hit the nail on the head with his last post. For somebody to get into that situation, they would have to put themselves there, which in those times would have been considered madness.