[scripts] iso_build.sh: fix if condition after flock