Create locking example.

This is simple code that allows to demonstrate locking.  It will not
be used by the site proper and probably should be deleted, but I'm
keeping it in so that people can check it out from git and replicate
the example from the video if desired.