dm raid: fix ctr memory leaks on error paths