dm-log-clustered/clogd: Fix off-by-one error and compilation errors
Needed to tweek included header files to make dm-log-clustered compile
again.
Found an off-by-one error that was causing mirror corruption in the
case where the primary mirror device was killed in a mirror.