A Necessary Condition for the Onset of Slug Flow in Near-Horizontal Pipes