Threshold for formation of a stable double layer in an expanding helicon plasma