fix passing invalid parametrs to flock. #51
Merge pull request #94 from glensc/issue-51

Handle faiure to open cache file for writing