anidb: Don't use a nil fileLock
anidb: Fix compilation of flock_other

Also fixes inverted if test.