dm raid: fix accesses beyond end of raid member array