libhb: More const correctness in nlmeans.