removed main method in logstorage script
made TableLock reentrant