tests/checkasm/nlmeans: fix invalid read/write on ii buffer