Fixed #8403 -- Changed the use of fcntl.flock() to fcntl.lockf(). On some