added inmemory store access lock.