create a lock file while the process is running to prevent race condition
increase timeout and don't break the lock if there's a timeout
exit if failled to get the lock
release the lock in a finally block and process the request only if the lock is acquired
Merge pull request #5 from w3c/deniak/lock-process

create a lock file while the process is running to prevent race condition