A File lock is a lock on a file
They are acquired from the operating system kernel file system.
All open files have acquired a lock.
Their implementation is OS depend. They are generally just flags.
They are stored in primary memory, not on disk. They will instantly disappear: