adding file locking (flock) example in C

The file locking example uses flock.
It is a simple user program that acquires a
lock and waits for data.
A second process can be started to try
and acquire the lock as well.
It will have to wait until the first is
finished.