Fix thundering-herd problem with exclusive lock

This pull-req is correspond to #14

I find that managing a temporary file is a little hard.
 - reopening of the file in a child process for `flock(2)`
 - cleanup of the file before the master process exits

Therefore, I used `pipe(2)` for exclusive lock. How about it?