[WIP] f-lock

:warning: :warning: **DO NOT MERGE** :warning: :warning:

The purpose of this branch is to introduce file-level locking to file operations.