Lock or unlock files with fcntl()

In this branch function fcntl() is enabled to set/read file locks. Resolves https://github.com/luaposix/luaposix/issues/109