This module implements file locks: the ability to lock a file so that other processes cannot access it until the file is unlocked.
Usage:lock_file(File,LockType,Result)
Tries to lock File with LockType and returns the result (either true or false) in Result.
Usage:unlock_file(File,Result)
Tries to unlock File the result (either true or false) in Result.