IPP: threshold fix

Fixed incorrect pointer conversion for in-place threshold.

test_modules=imgproc
build_examples=OFF
check_regression=*threshold*
test_filter=*Threshold*