issue #305. prevent resultset loss by placing flock on separate lock file

Hi,

As I've previously mentioned in my comment for issue #305, there is a bug that prevents stored_data from returning the contents of the resultset.json file while another process has an exclusive lock. This small fix places the lock on a separate empty file so that anyone can still access the resultset.json file for reading.

with kind regards,
kevin