Lock resultset json file

To prevent two processes writes at the same time.
Rescue LoadError and return empty set
Merge pull request #223 from tomykaira/safe_merge

Make ResultMerger safe in parallel environment