added a very simple lock storage to synchronize access to shared resourc...

...es