What I do is mute the string used for the ghost note with two+ fingers of my fretting hand. Don't press the string down hard enough to sound a note; just set your fingers on it so it makes a dead ‘plonk’ sound when you pluck the string with your right hand. It doesn't really matter where along the neck you do this.