Superfluous pipes and pipe creation race conditions