First time i was in a situation like that i just did the newb thing and grabbed the front brake, down i went, but i don't imagine i'll be doing that again, and even now, months on, i'm much more aware of things. I don't know how much training will stop you from automatically grabbing the front even when you're leaning, i guess you just need to slow right down and take on that 'every car driver is a crazed killer and hates me' persona