Locking the wheels is always a bad idea. You just switched from static friction to sliding friction, so you're getting a LOT less braking power, plus you just lost control. You're putting your feet down instinctually because you just gave up all other control of the bike. If you'd keep from locking the wheel in the first place you probably wouldn't have to put your feet down, and you'd stop faster too.
__________________
Work: the 8 hours that separates bike rides.