Add condition for FreeBSD, ignore SCHED_BATCH in filescanner.c