Close a race condition in read streams