I'm usually skeptical of YouTube 'hacks'. This one actually works and is only 3 minutes long.
Tighten the chuck on your cordless drill then turn it to the right and it will lock.
I've tried it on my B&D cordless drills, and it definitely works.
Your Drill Has a Secret Feature That Brands Are Hiding - YouTube