Slug detection systems for two-phase flowlines