I managed to do that once, many years ago. It's not really something I think about though. When it happened, I just sorta said to myself how cool that was.
Until I read this thread, I'd forgotten about it.
Your far more likely to see a castle-mate in a contrived chess problem.