Added table lock to sessions table.