If you have both an unsheltered account and a shelter like a TFSA or RSP, I suspect you could sell out of your unsheltered account to book the loss, and then buy the shares back within your sheltered account.
Someone with more of a clue than me please confirm?