Add support for record locking.

Closes #14

Add support for record locking when editing records.  Acquire lock
before showing edit screen, release lock after Save, Cancel, or
Delete.  (Completes support initiated with previous commit to this branch.)