Add lock for update isolation tests