Place an exclusive or shared lock on a file. It uses 'LockFile' on Windows and
'fcntl' locks on Unix-like systems.

WWW: https://github.com/r-lib/filelock#readme