Yeah, it takes a while to break yourself of trying to put a foot down. "Just...don't...do it. Don't do it... Oh, I did it". Ha. When you come to a stop, just think "balance". If not balanced, move forward, before you tip, and try again.
On hardpack (read: trail or parking lot), usually you can think ahead and stop where it's flat or, knowing its hardpack, knowingly break the "don't put your foot down" rule if the hard pack is really slanted sideways, but it's surprising how much side slant it will sit on when on hardpack. Or just face up or down the fall line and you are good.
On powder, it's surprisingly easy to stop balanced...unless you start to drop a foot and automatically shift your body weight like when coming to a stop with wheels on. Then you are toast! Ha. So keep those feet on the pegs and 80% of the battle is won.
If I come to a stop and the bike starts to lean and won't settle, you can either dump the clutch and blip the throttle for a split second to get the track to dig in and settle a bit, or you can pull forward a bike length and try that spot.
Just think "balance" every time you stop.