Apply or remove an advisory lock on an open file
file to apply or remove lock from
lock operation to perform
0 on success, -1 on failure, with .errno set appropriately.
See Implementation
Apply or remove an advisory lock on an open file