[what] Add lock file check in countlyBatch.sh