add lock in commit and change HashMap on ConcurrentHahMap