VIB-lib: Segmentation editor/ CustomStackWindow.java: Speed improvement

Improved ROI application speed for cases when there are no locked
materials.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>