crypto: lrw - Fix out-of bounds access on counter overflow