Reduce repository locking time when creating info stream