Added program to test scope of fcntl lock: process or thread