You cannot obtain a Master Ball from the Jubilife Lottery in Pokémon Platinum, regardless of your party composition.
The Jubilife Lottery awards other prizes—such as PP Up, Rare Candy, and various items—based on matching your Trainer ID number. A Master Ball is not in its prize pool.