added a very simple lock storage to synchronize access to shared resources