add a SIGPIPE handler to BQM
remove deprecated lock code

This is follow up to 659c1fb.  The deprecated lock code used
subdirectories which leaves behind empty directories when the lock is
removed.  Since it is safe to assume all the old-lock-only code is no
longer running we can now remove that.