Neutral safety switch or something else?
One thing I have seen many times is the ground strap from back of Cyl head to fire wall is missing, loose or bad contact causing this problem, very simple repair and if it still acting up now you know what it's not and continue on with diagnosis.