Lock or unlock files with fcntl()

In this branch function fcntl() is enabled to set/read file locks